IBinderDeathRecipient.BinderDied Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
BinderDied() | |
BinderDied(IBinder) |
The function called when the process hosting an IBinder has gone away. |
BinderDied()
[Android.Runtime.Register("binderDied", "()V", "GetBinderDiedHandler:Android.OS.IBinderDeathRecipientInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void BinderDied();
[<Android.Runtime.Register("binderDied", "()V", "GetBinderDiedHandler:Android.OS.IBinderDeathRecipientInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member BinderDied : unit -> unit
- Attributes
Remarks
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
BinderDied(IBinder)
The function called when the process hosting an IBinder has gone away.
[Android.Runtime.Register("binderDied", "(Landroid/os/IBinder;)V", "GetBinderDied_Landroid_os_IBinder_Handler:Android.OS.IBinderDeathRecipient, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public virtual void BinderDied(Android.OS.IBinder who);
[<Android.Runtime.Register("binderDied", "(Landroid/os/IBinder;)V", "GetBinderDied_Landroid_os_IBinder_Handler:Android.OS.IBinderDeathRecipient, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member BinderDied : Android.OS.IBinder -> unit
override this.BinderDied : Android.OS.IBinder -> unit
Parameters
- who
- IBinder
The IBinder that has become invalid
- Attributes
Remarks
The function called when the process hosting an IBinder has gone away.
This callback will be called from any binder thread like any other binder transaction. If the process receiving this notification is multithreaded then synchronization may be required because other threads may be executing at the same time.
No locks are held in libbinder when binderDied
is called.
There is no need to call unlinkToDeath
in the binderDied callback. The binder is already dead so unlinkToDeath
is a no-op. It will be unlinked when the last local reference of that binder proxy is dropped.
Java documentation for android.os.IBinder.DeathRecipient.binderDied(android.os.IBinder)
.
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.