Android.Content.Context.SendBroadcast Method
Broadcast the given intent to all interested BroadcastReceivers, allowing an optional required permission to be enforced.

Syntax

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

See Also

BroadcastReceiver
Context.RegisterReceiver(BroadcastReceiver, Android.Content.IntentFilter)
Context.SendBroadcast(Intent)
Context.SendOrderedBroadcast(Intent, System.String)
Context.SendOrderedBroadcast(Intent, System.String, System.String, System.String, System.String, System.String, System.String)

Parameters

intent
The Intent to broadcast; all receivers matching this Intent will receive the broadcast.
receiverPermission
(optional) String naming a permission that a receiver must hold in order to receive your broadcast. If null, no permission is required.

Remarks

Broadcast the given intent to all interested BroadcastReceivers, allowing an optional required permission to be enforced. This call is asynchronous; it returns immediately, and you will continue executing while the receivers are run. No results are propagated from receivers and receivers can not abort the broadcast. If you want to allow receivers to propagate results or abort the broadcast, you must send an ordered broadcast using Context.SendOrderedBroadcast(Intent, System.String).

See Android.Content.BroadcastReceiver for more information on Intent broadcasts.

[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