ServiceInfo.ForegroundServiceTypeConnectedDevice フィールド

定義

注意事項

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

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

[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#foregroundServiceTypeconnectedDevice対応する定数。 自動、Bluetooth、テレビ、またはその他のデバイスの接続、監視、操作。

API レベルandroid.os.Build.VERSION_CODES#UPSIDE_DOWN_CAKE以降を対象とするアプリからこの種類のフォアグラウンド サービスを開始するには、アクセス許可android.Manifest.permission#FOREGROUND_SERVICE_CONNECTED_DEVICEが必要であり、次のいずれかのアクセス許可が必要です。android.Manifest.permission#BLUETOOTH_ADVERTISEandroid.Manifest.permission#BLUETOOTH_CONNECTandroid.Manifest.permission#CHANGE_NETWORK_STATEandroid.Manifest.permission#BLUETOOTH_SCANandroid.Manifest.permission#CHANGE_WIFI_STATEandroid.Manifest.permission#CHANGE_WIFI_MULTICAST_STATEandroid.Manifest.permission#NFCandroid.Manifest.permission#TRANSMIT_IRandroid.Manifest.permission#UWB_RANGINGまたは、接続されているいずれかの USB デバイス/アクセサリへのアクセス権が付与されています。

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

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

適用対象