Android.Content.Context.SendBroadcastAsUser Method
Version of Context.SendBroadcast(Intent, System.String) that allows you to specify the user the broadcast will be sent to.

Syntax

[Android.Runtime.Register("sendBroadcastAsUser", "(Landroid/content/Intent;Landroid/os/UserHandle;Ljava/lang/String;)V", "GetSendBroadcastAsUser_Landroid_content_Intent_Landroid_os_UserHandle_Ljava_lang_String_Handler")]
public abstract void SendBroadcastAsUser (Intent intent, Android.OS.UserHandle user, string receiverPermission)

See Also

Context.SendBroadcast(Intent, System.String)

Parameters

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

Remarks

Version of Context.SendBroadcast(Intent, System.String) that allows you to specify the user the broadcast will be sent to. This is not available to applications that are not pre-installed on the system image. Using it requires holding the INTERACT_ACROSS_USERS permission.

[Android Documentation]

Requirements

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