Android.Test.Mock.MockContext.SendBroadcastAsUser Method
Version of Android.Content.Context.SendBroadcast(Android.Content.Intent) that allows you to specify the user the broadcast will be sent to.

Syntax

[Android.Runtime.Register("sendBroadcastAsUser", "(Landroid/content/Intent;Landroid/os/UserHandle;)V", "GetSendBroadcastAsUser_Landroid_content_Intent_Landroid_os_UserHandle_Handler")]
public override void SendBroadcastAsUser (Android.Content.Intent intent, Android.OS.UserHandle user)

Parameters

intent
The intent to broadcast
user
UserHandle to send the intent to.

Remarks

Version of Android.Content.Context.SendBroadcast(Android.Content.Intent) 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.Test.Mock
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 17