Aracılığıyla paylaş


Context.RemoveStickyBroadcast(Intent) Method

Definition

Caution

deprecated

Remove the data previously sent with #sendStickyBroadcast, so that it is as if the sticky broadcast had never happened.

[Android.Runtime.Register("removeStickyBroadcast", "(Landroid/content/Intent;)V", "GetRemoveStickyBroadcast_Landroid_content_Intent_Handler")]
[Android.Runtime.RequiresPermission("android.permission.BROADCAST_STICKY")]
[System.Obsolete("deprecated")]
public abstract void RemoveStickyBroadcast (Android.Content.Intent? intent);
[<Android.Runtime.Register("removeStickyBroadcast", "(Landroid/content/Intent;)V", "GetRemoveStickyBroadcast_Landroid_content_Intent_Handler")>]
[<Android.Runtime.RequiresPermission("android.permission.BROADCAST_STICKY")>]
[<System.Obsolete("deprecated")>]
abstract member RemoveStickyBroadcast : Android.Content.Intent -> unit

Parameters

intent
Intent

The Intent that was previously broadcast.

Attributes

Remarks

Remove the data previously sent with #sendStickyBroadcast, so that it is as if the sticky broadcast had never happened.

This member is deprecated. Sticky broadcasts should not be used. They provide no security (anyone can access them), no protection (anyone can modify them), and many other problems. The recommended pattern is to use a non-sticky broadcast to report that <em>something</em> has changed, with another mechanism for apps to retrieve the current value whenever desired.

Java documentation for android.content.Context.removeStickyBroadcast(android.content.Intent).

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