Context.UnregisterReceiver(BroadcastReceiver) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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)>