2021-06-27 20:44:35 +00:00
|
|
|
package androidx.browser.trusted;
|
|
|
|
|
|
|
|
import android.os.Bundle;
|
|
|
|
import android.os.IBinder;
|
|
|
|
import android.os.RemoteException;
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
import androidx.annotation.Nullable;
|
2021-11-02 06:38:17 +00:00
|
|
|
import x.a.a.d.a;
|
2021-06-27 20:44:35 +00:00
|
|
|
public class TrustedWebActivityCallbackRemote {
|
|
|
|
private final a mCallbackBinder;
|
|
|
|
|
|
|
|
private TrustedWebActivityCallbackRemote(@NonNull a aVar) {
|
|
|
|
this.mCallbackBinder = aVar;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Nullable
|
|
|
|
public static TrustedWebActivityCallbackRemote fromBinder(@Nullable IBinder iBinder) {
|
2022-02-01 08:01:17 +00:00
|
|
|
a asInterface = iBinder == null ? null : a.AbstractBinderC0352a.asInterface(iBinder);
|
2021-06-27 20:44:35 +00:00
|
|
|
if (asInterface == null) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
return new TrustedWebActivityCallbackRemote(asInterface);
|
|
|
|
}
|
|
|
|
|
|
|
|
public void runExtraCallback(@NonNull String str, @NonNull Bundle bundle) throws RemoteException {
|
|
|
|
this.mCallbackBinder.onExtraCallback(str, bundle);
|
|
|
|
}
|
|
|
|
}
|