IBinder.LinkToDeath(IBinderDeathRecipient, Int32) Metodo

Definizione

Registrare il destinatario per una notifica se questo binder viene eliminato.

[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(Android.OS.IBinderDeathRecipient recipient, int flags);
[<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")>]
abstract member LinkToDeath : Android.OS.IBinderDeathRecipient * int -> unit

Parametri

recipient
IBinderDeathRecipient

Il valore non può essere Null.

flags
Int32

Flag che controllano l'operazione.

Attributi

Eccezioni

se il processo di IBinder di destinazione è già morto.

Commenti

per android.os.IBinder.linkToDeath(android.os.DeathRecipient, int).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dalla e usati in base ai termini descritti in Creative License 2.5 Attribution License.

Si applica a