Android.Content.Context.SendStickyBroadcast Method

Syntax

[Android.Runtime.Register("sendStickyBroadcast", "(Landroid/content/Intent;)V", "GetSendStickyBroadcast_Landroid_content_Intent_Handler")]
public abstract void SendStickyBroadcast (Intent intent)

See Also

Context.SendBroadcast(Intent)
Context.SendStickyOrderedBroadcast(Intent, Android.Content.BroadcastReceiver, Android.Content.BroadcastReceiver, Android.Content.BroadcastReceiver, Android.Content.BroadcastReceiver, Android.Content.BroadcastReceiver)

Parameters

intent
The Intent to broadcast; all receivers matching this Intent will receive the broadcast, and the Intent will be held to be re-broadcast to future receivers.

Remarks

Perform a Context.SendBroadcast(Intent) that is "sticky," meaning the Intent you are sending stays around after the broadcast is complete, so that others can quickly retrieve that data through the return value of Context.RegisterReceiver(BroadcastReceiver, Android.Content.IntentFilter). In all other ways, this behaves the same as Context.SendBroadcast(Intent).

You must hold the NoType:android/Manifest$permission;Href=../../../reference/android/Manifest.permission.html#BROADCAST_STICKY permission in order to use this API. If you do not hold that permission, Java.Lang.SecurityException will be thrown.

[Android Documentation]

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1