Share via


AppOpsManager.WatchForegroundChanges Field

Definition

Caution

This constant will be removed in the future version. Use Android.App.WatchForeground enum directly instead of this field.

Flag for #startWatchingMode(String, String, int, OnOpChangedListener): Also get reports if the foreground state of an op's uid changes.

[Android.Runtime.Register("WATCH_FOREGROUND_CHANGES", ApiSince=29)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.WatchForeground enum directly instead of this field.", true)]
public const Android.App.WatchForeground WatchForegroundChanges = 1;
[<Android.Runtime.Register("WATCH_FOREGROUND_CHANGES", ApiSince=29)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.WatchForeground enum directly instead of this field.", true)>]
val mutable WatchForegroundChanges : Android.App.WatchForeground

Field Value

Value = 1
Attributes

Remarks

Flag for #startWatchingMode(String, String, int, OnOpChangedListener): Also get reports if the foreground state of an op's uid changes. This only works when watching a particular op, not when watching a package.

Java documentation for android.app.AppOpsManager.WATCH_FOREGROUND_CHANGES.

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