語言

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
屬性

備註

啟動WatchingMode(String, String, int, OnOpChangedListener)的旗標:如果操作員的 uid 前景狀態改變,也會收到回報。 這只在監視特定行動時有效,監視包裹時不行。

Android 參考資料。android.app.AppOpsManager.WATCH_FOREGROUND_CHANGES

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於