Android.OS.IBinder.LinkToDeath Method
Register the recipient for a notification if this binder goes away.

Syntax

[Android.Runtime.Register("linkToDeath", "(Landroid/os/IBinder$DeathRecipient;I)V", "GetLinkToDeath_Landroid_os_IBinder_DeathRecipient_IHandler:Android.OS.IBinderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void LinkToDeath (IBinderDeathRecipient recipient, int flags)

Parameters

recipient
Documentation for this section has not yet been entered.
flags
Documentation for this section has not yet been entered.

Exceptions

TypeReason
Android.OS.RemoteExceptionif the target IBinder's process has already died.

Remarks

Register the recipient for a notification if this binder goes away. If this binder object unexpectedly goes away (typically because its hosting process has been killed), then the given Android.OS.IBinderDeathRecipient's IBinderDeathRecipient.BinderDied method will be called.

You will only receive death notifications for remote binders, as local binders by definition can't die without you dying as well.

[Android Documentation]

Requirements

Namespace: Android.OS
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1