語言

Settings.ActionIgnoreBackgroundDataRestrictionsSettings 欄位

定義

活動動作:顯示畫面,用於控制特定應用程式的背景資料限制。

[Android.Runtime.Register("ACTION_IGNORE_BACKGROUND_DATA_RESTRICTIONS_SETTINGS", ApiSince=24)]
public const string ActionIgnoreBackgroundDataRestrictionsSettings;
[<Android.Runtime.Register("ACTION_IGNORE_BACKGROUND_DATA_RESTRICTIONS_SETTINGS", ApiSince=24)>]
val mutable ActionIgnoreBackgroundDataRestrictionsSettings : string

欄位值

屬性

備註

活動動作:顯示畫面,用於控制特定應用程式的背景資料限制。

輸入:意圖的資料 URI 集合,並使用應用程式名稱,使用「package」結構(如「package:com.my.app」)。

輸出:無。

應用程式也可以用來 android.net.ConnectivityManager#getRestrictBackgroundStatus ConnectivityManager#getRestrictBackgroundStatus() 判斷其背景資料限制的狀態。

有時可能沒有匹配的活動,請務必防範這種情況。

的 android.provider.Settings.ACTION_IGNORE_BACKGROUND_DATA_RESTRICTIONS_SETTINGSJava 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於