Language

BluetoothGattConnectionSettings.Builder.SetOpportunisticEnabled メソッド

定義

この GATT クライアントが日和見かどうかを設定します。

[Android.Runtime.Register("setOpportunisticEnabled", "(Z)Landroid/bluetooth/BluetoothGattConnectionSettings$Builder;", "", ApiSince=37)]
public Android.Bluetooth.BluetoothGattConnectionSettings.Builder SetOpportunisticEnabled(bool opportunisticEnabled);
[<Android.Runtime.Register("setOpportunisticEnabled", "(Z)Landroid/bluetooth/BluetoothGattConnectionSettings$Builder;", "", ApiSince=37)>]
member this.SetOpportunisticEnabled : bool -> Android.Bluetooth.BluetoothGattConnectionSettings.Builder

パラメーター

opportunisticEnabled
Boolean

この接続が日和見的な場合は true、それ以外の場合は false。

返品

このビルダー。 この値は null にすることはできません。

属性

注釈

この GATT クライアントが日和見かどうかを設定します。 日和見 GATT クライアントが GATT 接続を保持していません。 リモート デバイスに対して他の GATT 接続がアクティブでない場合は、自動的に切断されます

android.bluetooth.BluetoothGattConnectionSettings.Builder.setOpportunisticEnabledの Android リファレンス。

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

適用対象