ServiceInfo.ForegroundServiceTypeSystemExempted フィールド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
注意事項
This constant will be removed in the future version. Use Android.Content.PM.ForegroundService enum directly instead of this field.
属性内の android.R.attr#foregroundServiceType
にsystemExempted
対応する定数。
[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#foregroundServiceType
にsystemExempted
対応する定数。 システムがフォアグラウンド サービスのユース ケースを除外しました。
<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_EXEMPTED
Java ドキュメント。
このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。