BluetoothGatt.RequestConnectionPriority(GattConnectionPriority) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
接続パラメーターの更新を要求します。
[Android.Runtime.Register("requestConnectionPriority", "(I)Z", "")]
[Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")]
public bool RequestConnectionPriority(Android.Bluetooth.GattConnectionPriority connectionPriority);
[<Android.Runtime.Register("requestConnectionPriority", "(I)Z", "")>]
[<Android.Runtime.RequiresPermission("android.permission.BLUETOOTH_CONNECT")>]
member this.RequestConnectionPriority : Android.Bluetooth.GattConnectionPriority -> bool
パラメーター
- connectionPriority
- GattConnectionPriority
特定の接続優先度を要求します。
BluetoothGatt#CONNECTION_PRIORITY_BALANCED、BluetoothGatt#CONNECTION_PRIORITY_HIGHBluetoothGatt#CONNECTION_PRIORITY_LOW_POWER、またはBluetoothGatt#CONNECTION_PRIORITY_DCKのいずれかである必要があります。
返品
- 属性
例外
パラメーターが指定した範囲外の場合。
注釈
接続パラメーターの更新を要求します。
この関数は、接続パラメーターの更新要求をリモート デバイスに送信します。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。