ServiceInfo.ForegroundServiceTypeCamera フィールド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 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
にcamera
対応する定数。
[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#foregroundServiceType
にcamera
対応する定数。 カメラ デバイスを使用するか、ビデオを録画します。 以降の targetSdkVersion
android.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_CAMERA
android.Manifest.permission#CAMERA
が必要です。
の android.content.pm.ServiceInfo.FOREGROUND_SERVICE_TYPE_CAMERA
Java ドキュメント。
このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。