BluetoothGattServerCallback.OnConnectionStateChange メソッド

定義

リモート デバイスがいつ接続または切断されたかを示すコールバック。

[Android.Runtime.Register("onConnectionStateChange", "(Landroid/bluetooth/BluetoothDevice;II)V", "GetOnConnectionStateChange_Landroid_bluetooth_BluetoothDevice_IIHandler")]
public virtual void OnConnectionStateChange(Android.Bluetooth.BluetoothDevice? device, Android.Bluetooth.ProfileState status, Android.Bluetooth.ProfileState newState);
[<Android.Runtime.Register("onConnectionStateChange", "(Landroid/bluetooth/BluetoothDevice;II)V", "GetOnConnectionStateChange_Landroid_bluetooth_BluetoothDevice_IIHandler")>]
abstract member OnConnectionStateChange : Android.Bluetooth.BluetoothDevice * Android.Bluetooth.ProfileState * Android.Bluetooth.ProfileState -> unit
override this.OnConnectionStateChange : Android.Bluetooth.BluetoothDevice * Android.Bluetooth.ProfileState * Android.Bluetooth.ProfileState -> unit

パラメーター

device
BluetoothDevice

接続または切断されたリモート デバイス。

status
ProfileState

接続または切断操作の状態。

newState
ProfileState

新しい接続状態を返します。 BluetoothProfile#STATE_DISCONNECTEDまたはBluetoothProfile#STATE_CONNECTED

属性

注釈

リモート デバイスがいつ接続または切断されたかを示すコールバック。

Javaドキュメント。

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

適用対象