ServiceInfo.ForegroundServiceTypeSystemExempted フィールド

定義

注意事項

This constant will be removed in the future version. Use Android.Content.PM.ForegroundService enum directly instead of this field.

属性内の android.R.attr#foregroundServiceTypesystemExempted対応する定数。

[Android.Runtime.Register("FOREGROUND_SERVICE_TYPE_SYSTEM_EXEMPTED", ApiSince=34)]
[Android.Runtime.RequiresPermission("android.permission.FOREGROUND_SERVICE_SYSTEM_EXEMPTED")]
[System.Obsolete("This constant will be removed in the future version. Use Android.Content.PM.ForegroundService enum directly instead of this field.", true)]
public const Android.Content.PM.ForegroundService ForegroundServiceTypeSystemExempted = 1024;
[<Android.Runtime.Register("FOREGROUND_SERVICE_TYPE_SYSTEM_EXEMPTED", ApiSince=34)>]
[<Android.Runtime.RequiresPermission("android.permission.FOREGROUND_SERVICE_SYSTEM_EXEMPTED")>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.PM.ForegroundService enum directly instead of this field.", true)>]
val mutable ForegroundServiceTypeSystemExempted : Android.Content.PM.ForegroundService

フィールド値

Value = 1024

実装

属性

注釈

属性内の android.R.attr#foregroundServiceTypesystemExempted対応する定数。 システムがフォアグラウンド サービスのユース ケースを除外しました。

<p class="note">Note, apps are allowed to use this type in the following cases: <ul><li>App has a UID < android.os.Process#FIRST_APPLICATION_UID</li li><>App is on Doze allowlist</li li><>Device is running in Demo Mode</li><li>Device owner app</li><li>Profile owner apps</li li>><Persistent apps</li><li>Carrier privileged apps</li><li>Apps that have android.app.role.RoleManager#ROLE_EMERGENCY the role</li><li>headless system apps</li li>><デバイス管理者アプリ</li li>><Active VPN Apps</li li>><Apps の保持android.Manifest.permission#SCHEDULE_EXACT_ALARMまたはandroid.Manifest.permission#USE_EXACT_ALARMアクセス許可。</li></ul></p>

android.content.pm.ServiceInfo.FOREGROUND_SERVICE_TYPE_SYSTEM_EXEMPTEDJava ドキュメント。

このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。

適用対象