Lenguaje

IBinder.UnlinkToDeath(IBinderDeathRecipient, Int32) Método

Definición

Quite una notificación de muerte registrada anteriormente.

[Android.Runtime.Register("unlinkToDeath", "(Landroid/os/IBinder$DeathRecipient;I)Z", "GetUnlinkToDeath_Landroid_os_IBinder_DeathRecipient_IHandler:Android.OS.IBinderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool UnlinkToDeath(Android.OS.IBinderDeathRecipient recipient, int flags);
[<Android.Runtime.Register("unlinkToDeath", "(Landroid/os/IBinder$DeathRecipient;I)Z", "GetUnlinkToDeath_Landroid_os_IBinder_DeathRecipient_IHandler:Android.OS.IBinderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member UnlinkToDeath : Android.OS.IBinderDeathRecipient * int -> bool

Parámetros

recipient
IBinderDeathRecipient

El valor no puede ser NULL.

flags
Int32

Marcas que controlan la operación.

Devoluciones

true si el destinatario está desvinculado correctamente, asegurándose de que no se llamará a su DeathRecipient#binderDied DeathRecipient.binderDied() método; false si el IBinder de destino ya ha muerto, lo que significa que se ha llamado al método (o pronto se llamará).

Atributos

Excepciones

si el destinatario</>var< especificado >no se ha registrado con IBinder y el IBinder sigue activo. Tenga en cuenta que si el <destinatario> var<o var> nunca se registró, pero IBinder ya ha muerto, esta excepción no se iniciará y recibirá un valor devuelto falso en su lugar.

Comentarios

Java documentación para android.os.IBinder.unlinkToDeath(android.os.DeathRecipient, int).

Las partes de esta página son modificaciones basadas en el trabajo creado y compartido por el Android y se usan según los términos descritos en creative Creative Commons 2.5 Attribution License.

Se aplica a