Android.Content.Context.RemoveStickyBroadcastAsUser Method

Syntax

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

See Also

Context.SendStickyBroadcastAsUser(Intent, Android.OS.UserHandle)

Parameters

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

Remarks

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