语言

IBinder.LinkToDeath(IBinderDeathRecipient, Int32) 方法

定义

如果此绑定器消失,请注册收件人以获取通知。

[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

参数

recipient
IBinderDeathRecipient

该值不能为 null。

flags
Int32

控制操作的标志。

属性

例外

如果目标 IBinder 的进程已经死亡,

注解

Java文档android.os.IBinder.linkToDeath(android.os.DeathRecipient, int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于