Android.Test.Mock.MockContext.SendBroadcast Method
Broadcast the given intent to all interested BroadcastReceivers.

Syntax

[Android.Runtime.Register("sendBroadcast", "(Landroid/content/Intent;)V", "GetSendBroadcast_Landroid_content_Intent_Handler")]
public override void SendBroadcast (Android.Content.Intent intent)

Parameters

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

Remarks

Broadcast the given intent to all interested BroadcastReceivers. 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 Android.Content.Context.SendOrderedBroadcast(Android.Content.Intent, System.String).

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

[Android Documentation]

Requirements

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