Context.SendBroadcast Context.SendBroadcast Method

Definition

Overloads

SendBroadcast(Intent) SendBroadcast(Intent)

Broadcast the given intent to all interested BroadcastReceivers.

SendBroadcast(Intent, String) SendBroadcast(Intent, String)

Broadcast the given intent to all interested BroadcastReceivers, allowing an optional required permission to be enforced.

SendBroadcast(Intent) SendBroadcast(Intent)

Broadcast the given intent to all interested BroadcastReceivers.

[Android.Runtime.Register("sendBroadcast", "(Landroid/content/Intent;)V", "GetSendBroadcast_Landroid_content_Intent_Handler")]
public abstract void SendBroadcast (Android.Content.Intent intent);
abstract member SendBroadcast : Android.Content.Intent -> unit

Parameters

intent
Intent Intent

The Intent to broadcast; all receivers matching this Intent will receive the broadcast.

Remarks

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.

See also

SendBroadcast(Intent, String) SendBroadcast(Intent, String)

Broadcast the given intent to all interested BroadcastReceivers, allowing an optional required permission to be enforced.

[Android.Runtime.Register("sendBroadcast", "(Landroid/content/Intent;Ljava/lang/String;)V", "GetSendBroadcast_Landroid_content_Intent_Ljava_lang_String_Handler")]
public abstract void SendBroadcast (Android.Content.Intent intent, string receiverPermission);
abstract member SendBroadcast : Android.Content.Intent * string -> unit

Parameters

intent
Intent Intent

The Intent to broadcast; all receivers matching this Intent will receive the broadcast.

receiverPermission
String String

(optional) String naming a permission that a receiver must hold in order to receive your broadcast. If null, no permission is required.

Remarks

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.

See also

Applies to