ServiceInfo.ForegroundServiceTypeCamera フィールド

定義

注意事項

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

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

[Android.Runtime.Register("FOREGROUND_SERVICE_TYPE_CAMERA", ApiSince=30)]
[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 ForegroundServiceTypeCamera = 64;
[<Android.Runtime.Register("FOREGROUND_SERVICE_TYPE_CAMERA", ApiSince=30)>]
[<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 ForegroundServiceTypeCamera : Android.Content.PM.ForegroundService

フィールド値

Value = 64

実装

属性

注釈

属性内の android.R.attr#foregroundServiceTypecamera対応する定数。 カメラ デバイスを使用するか、ビデオを録画します。 以降の targetSdkVersionandroid.os.Build.VERSION_CODES#R アプリの場合、この型がマニフェストと で指定されていない場合、フォアグラウンド サービスはカメラに android.app.Service#startForeground(int, android.app.Notification, int)アクセスできません。

API レベルandroid.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE以降を対象とするアプリからこの種類のフォアグラウンド サービスを開始するには、 と のアクセス許可android.Manifest.permission#FOREGROUND_SERVICE_CAMERAandroid.Manifest.permission#CAMERAが必要です。

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

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

適用対象