Callback indicating when a remote device has been connected or disconnected.
Syntax
[Android.Runtime.Register("onConnectionStateChange", "(Landroid/bluetooth/BluetoothDevice;II)V", "GetOnConnectionStateChange_Landroid_bluetooth_BluetoothDevice_IIHandler")]
public virtual
void OnConnectionStateChange (
BluetoothDevice device, [Android.Runtime.GeneratedEnum]
ProfileState status, [Android.Runtime.GeneratedEnum]
ProfileState newState)
Parameters
- device
- Remote device that has been connected or disconnected.
- status
- Status of the connect or disconnect operation.
- newState
- Returns the new connection state. Can be one of
BluetoothProfile.STATE_DISCONNECTED or
BluetoothProfile.STATE_CONNECTED
Remarks
Requirements
Namespace: Android.Bluetooth
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18