语言

AppOpsManager.WatchForegroundChanges 字段

定义

注意

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

#startWatchingMode(String, String, int, OnOpChangedListener)标志:如果操作的 uid 的前景状态发生更改,则还会获取报告。

[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

字段值

Value = 1
特性

注解

startWatchingMode(String,String,int,OnOpChangedListener)的标志:如果操作的 uid 的前景状态发生更改,也会获取报告。 这仅在监视特定操作时有效,而不适用于监视包。

Android 参考。android.app.AppOpsManager.WATCH_FOREGROUND_CHANGES

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于