ServiceInfo.ForegroundServiceTypeConnectedDevice フィールド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 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
にconnectedDevice
対応する定数。
[Android.Runtime.Register("FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE", ApiSince=29)]
[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 ForegroundServiceTypeConnectedDevice = 16;
[<Android.Runtime.Register("FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE", ApiSince=29)>]
[<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 ForegroundServiceTypeConnectedDevice : Android.Content.PM.ForegroundService
フィールド値
Value = 16実装
- 属性
注釈
属性内の android.R.attr#foregroundServiceType
にconnectedDevice
対応する定数。 自動、Bluetooth、テレビ、またはその他のデバイスの接続、監視、操作。
API レベルandroid.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE
以降を対象とするアプリからこの種類のフォアグラウンド サービスを開始するには、アクセス許可android.Manifest.permission#FOREGROUND_SERVICE_CONNECTED_DEVICE
が必要であり、次のいずれかのアクセス許可が必要です。android.Manifest.permission#BLUETOOTH_ADVERTISE
、android.Manifest.permission#BLUETOOTH_CONNECT
android.Manifest.permission#CHANGE_NETWORK_STATE
android.Manifest.permission#BLUETOOTH_SCAN
、android.Manifest.permission#CHANGE_WIFI_STATE
、android.Manifest.permission#CHANGE_WIFI_MULTICAST_STATE
android.Manifest.permission#NFC
android.Manifest.permission#TRANSMIT_IR
android.Manifest.permission#UWB_RANGING
または、接続されているいずれかの USB デバイス/アクセサリへのアクセス権が付与されています。
の android.content.pm.ServiceInfo.FOREGROUND_SERVICE_TYPE_CONNECTED_DEVICE
Java ドキュメント。
このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。