共用方式為


MockContext.UnregisterReceiver(BroadcastReceiver) 方法

定義

取消註冊先前註冊的 BroadcastReceiver。

[Android.Runtime.Register("unregisterReceiver", "(Landroid/content/BroadcastReceiver;)V", "GetUnregisterReceiver_Landroid_content_BroadcastReceiver_Handler")]
public override void UnregisterReceiver (Android.Content.BroadcastReceiver? receiver);
[<Android.Runtime.Register("unregisterReceiver", "(Landroid/content/BroadcastReceiver;)V", "GetUnregisterReceiver_Landroid_content_BroadcastReceiver_Handler")>]
override this.UnregisterReceiver : Android.Content.BroadcastReceiver -> unit

參數

receiver
BroadcastReceiver

要取消註冊的 BroadcastReceiver。

屬性

備註

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

適用於