Android.Test.Mock.MockContext.RemoveStickyBroadcastAsUser Method

Syntax

[Android.Runtime.Register("removeStickyBroadcastAsUser", "(Landroid/content/Intent;Landroid/os/UserHandle;)V", "GetRemoveStickyBroadcastAsUser_Landroid_content_Intent_Landroid_os_UserHandle_Handler")]
[System.Obsolete("deprecated")]
public override void RemoveStickyBroadcastAsUser (Android.Content.Intent intent, Android.OS.UserHandle user)

Parameters

intent
The Intent that was previously broadcast.
user
UserHandle to remove the sticky broadcast from.

Remarks

Version of Android.Content.Context.RemoveStickyBroadcast(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.

You must hold the NoType:android/Manifest$permission;Href=../../../../reference/android/Manifest.permission.html#BROADCAST_STICKY permission in order to use this API. If you do not hold that permission, Java.Lang.SecurityException will be thrown.

[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