ServiceInfo.ForegroundServiceTypeMediaPlayback フィールド

定義

注意事項

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

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

[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#foregroundServiceTypemediaPlayback対応する定数。 音楽、ビデオ、ニュース、その他のメディア再生。

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

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

適用対象