次の方法で共有


RemoteCallbackList.OnCallbackDied Method

Definition

Overloads

OnCallbackDied(Object)

Old version of #onCallbackDied(E, Object) that does not provide a cookie.

OnCallbackDied(Object, Object)

Called when the process hosting a callback in the list has gone away.

OnCallbackDied(Object)

Old version of #onCallbackDied(E, Object) that does not provide a cookie.

[Android.Runtime.Register("onCallbackDied", "(Landroid/os/IInterface;)V", "GetOnCallbackDied_Landroid_os_IInterface_Handler")]
public virtual void OnCallbackDied (Java.Lang.Object? callback);
[<Android.Runtime.Register("onCallbackDied", "(Landroid/os/IInterface;)V", "GetOnCallbackDied_Landroid_os_IInterface_Handler")>]
abstract member OnCallbackDied : Java.Lang.Object -> unit
override this.OnCallbackDied : Java.Lang.Object -> unit

Parameters

callback
Object
Attributes

Remarks

Old version of #onCallbackDied(E, Object) that does not provide a cookie.

Java documentation for android.os.RemoteCallbackList.onCallbackDied(E).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

OnCallbackDied(Object, Object)

Called when the process hosting a callback in the list has gone away.

[Android.Runtime.Register("onCallbackDied", "(Landroid/os/IInterface;Ljava/lang/Object;)V", "GetOnCallbackDied_Landroid_os_IInterface_Ljava_lang_Object_Handler")]
public virtual void OnCallbackDied (Java.Lang.Object? callback, Java.Lang.Object? cookie);
[<Android.Runtime.Register("onCallbackDied", "(Landroid/os/IInterface;Ljava/lang/Object;)V", "GetOnCallbackDied_Landroid_os_IInterface_Ljava_lang_Object_Handler")>]
abstract member OnCallbackDied : Java.Lang.Object * Java.Lang.Object -> unit
override this.OnCallbackDied : Java.Lang.Object * Java.Lang.Object -> unit

Parameters

callback
Object

The callback whose process has died. Note that, since its process has died, you can not make any calls on to this interface. You can, however, retrieve its IBinder and compare it with another IBinder to see if it is the same object.

cookie
Object

The cookie object original provided to #register(E, Object).

Attributes

Remarks

Called when the process hosting a callback in the list has gone away. The default implementation calls #onCallbackDied(E) for backwards compatibility.

Java documentation for android.os.RemoteCallbackList.onCallbackDied(E, java.lang.Object).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to