Context.SendOrderedBroadcast Context.SendOrderedBroadcast Method

Definition

Overloads

SendOrderedBroadcast(Intent, String) SendOrderedBroadcast(Intent, String)
SendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, Result, String, Bundle) SendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, Result, String, Bundle)

Version of SendBroadcast(Intent) that allows you to receive data back from the broadcast.

SendOrderedBroadcast(Intent, String) SendOrderedBroadcast(Intent, String)

[Android.Runtime.Register("sendOrderedBroadcast", "(Landroid/content/Intent;Ljava/lang/String;)V", "GetSendOrderedBroadcast_Landroid_content_Intent_Ljava_lang_String_Handler")]
public abstract void SendOrderedBroadcast (Android.Content.Intent intent, string receiverPermission);
abstract member SendOrderedBroadcast : 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 permissions 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

SendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, Result, String, Bundle) SendOrderedBroadcast(Intent, String, BroadcastReceiver, Handler, Result, String, Bundle)

Version of SendBroadcast(Intent) that allows you to receive data back from the broadcast.

[Android.Runtime.Register("sendOrderedBroadcast", "(Landroid/content/Intent;Ljava/lang/String;Landroid/content/BroadcastReceiver;Landroid/os/Handler;ILjava/lang/String;Landroid/os/Bundle;)V", "GetSendOrderedBroadcast_Landroid_content_Intent_Ljava_lang_String_Landroid_content_BroadcastReceiver_Landroid_os_Handler_ILjava_lang_String_Landroid_os_Bundle_Handler")]
public abstract void SendOrderedBroadcast (Android.Content.Intent intent, string receiverPermission, Android.Content.BroadcastReceiver resultReceiver, Android.OS.Handler scheduler, Android.App.Result initialCode, string initialData, Android.OS.Bundle initialExtras);
abstract member SendOrderedBroadcast : Android.Content.Intent * string * Android.Content.BroadcastReceiver * Android.OS.Handler * Android.App.Result * string * Android.OS.Bundle -> unit

Parameters

intent
Intent Intent

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

receiverPermission
String String

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

resultReceiver
BroadcastReceiver BroadcastReceiver

Your own BroadcastReceiver to treat as the final receiver of the broadcast.

scheduler
Handler Handler

A custom Handler with which to schedule the resultReceiver callback; if null it will be scheduled in the Context's main thread.

initialCode
Result Result

An initial value for the result code. Often Activity.RESULT_OK.

initialData
String String

An initial value for the result data. Often null.

initialExtras
Bundle Bundle

An initial value for the result extras. Often null.

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