ServiceInfo.ForegroundServiceTypeMediaPlayback フィールド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 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
にmediaPlayback
対応する定数。
[Android.Runtime.Register("FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK", ApiSince=29)]
[Android.Runtime.RequiresPermission("android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK")]
[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 ForegroundServiceTypeMediaPlayback = 2;
[<Android.Runtime.Register("FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK", ApiSince=29)>]
[<Android.Runtime.RequiresPermission("android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK")>]
[<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 ForegroundServiceTypeMediaPlayback : Android.Content.PM.ForegroundService
フィールド値
Value = 2実装
- 属性
注釈
属性内の android.R.attr#foregroundServiceType
にmediaPlayback
対応する定数。 音楽、ビデオ、ニュース、その他のメディア再生。
API レベル android.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE
以降を対象とするアプリからこの種類のフォアグラウンド サービスを開始するには、アクセス許可 android.Manifest.permission#FOREGROUND_SERVICE_MEDIA_PLAYBACK
が必要です。
の Java ドキュメント android.content.pm.ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK
。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。