共用方式為


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

參數

flags
Int32
屬性

例外狀況

如果目標 IBinder 的進程已經死亡,

備註

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

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於