次の方法で共有


AppOpsManager.StartWatchingMode Method

Definition

Overloads

StartWatchingMode(String, String, WatchForeground, AppOpsManager+IOnOpChangedListener)
StartWatchingMode(String, String, AppOpsManager+IOnOpChangedListener)

Monitor for changes to the operating mode for the given op in the given app package.

StartWatchingMode(String, String, WatchForeground, AppOpsManager+IOnOpChangedListener)

[Android.Runtime.Register("startWatchingMode", "(Ljava/lang/String;Ljava/lang/String;ILandroid/app/AppOpsManager$OnOpChangedListener;)V", "GetStartWatchingMode_Ljava_lang_String_Ljava_lang_String_ILandroid_app_AppOpsManager_OnOpChangedListener_Handler", ApiSince=29)]
public virtual void StartWatchingMode (string op, string? packageName, Android.App.WatchForeground flags, Android.App.AppOpsManager.IOnOpChangedListener callback);
[<Android.Runtime.Register("startWatchingMode", "(Ljava/lang/String;Ljava/lang/String;ILandroid/app/AppOpsManager$OnOpChangedListener;)V", "GetStartWatchingMode_Ljava_lang_String_Ljava_lang_String_ILandroid_app_AppOpsManager_OnOpChangedListener_Handler", ApiSince=29)>]
abstract member StartWatchingMode : string * string * Android.App.WatchForeground * Android.App.AppOpsManager.IOnOpChangedListener -> unit
override this.StartWatchingMode : string * string * Android.App.WatchForeground * Android.App.AppOpsManager.IOnOpChangedListener -> unit

Parameters

op
String
packageName
String
Attributes

Applies to

StartWatchingMode(String, String, AppOpsManager+IOnOpChangedListener)

Monitor for changes to the operating mode for the given op in the given app package.

[Android.Runtime.Register("startWatchingMode", "(Ljava/lang/String;Ljava/lang/String;Landroid/app/AppOpsManager$OnOpChangedListener;)V", "GetStartWatchingMode_Ljava_lang_String_Ljava_lang_String_Landroid_app_AppOpsManager_OnOpChangedListener_Handler")]
public virtual void StartWatchingMode (string op, string? packageName, Android.App.AppOpsManager.IOnOpChangedListener callback);
[<Android.Runtime.Register("startWatchingMode", "(Ljava/lang/String;Ljava/lang/String;Landroid/app/AppOpsManager$OnOpChangedListener;)V", "GetStartWatchingMode_Ljava_lang_String_Ljava_lang_String_Landroid_app_AppOpsManager_OnOpChangedListener_Handler")>]
abstract member StartWatchingMode : string * string * Android.App.AppOpsManager.IOnOpChangedListener -> unit
override this.StartWatchingMode : string * string * Android.App.AppOpsManager.IOnOpChangedListener -> unit

Parameters

op
String

The operation to monitor, one of OPSTR_*.

packageName
String

The name of the application to monitor.

callback
AppOpsManager.IOnOpChangedListener

Where to report changes.

Attributes

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.

Applies to