共用方式為


Context.UnregisterReceiver(BroadcastReceiver) Method

Definition

Unregister a previously registered BroadcastReceiver.

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

Parameters

receiver
BroadcastReceiver

The BroadcastReceiver to unregister.

Attributes

Remarks

Unregister a previously registered BroadcastReceiver. <em>All</em> filters that have been registered for this BroadcastReceiver will be removed.

Java documentation for android.content.Context.unregisterReceiver(android.content.BroadcastReceiver).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also

  • <xref:Android.Content.Context.RegisterReceiver(Android.Content.BroadcastReceiver%2c+Android.Content.IntentFilter)>