C# Class BluetoothLE.Droid.GattCallback

Gatt callback to handle Gatt events.
Inheritance: Android.Bluetooth.BluetoothGattCallback
Show file Open project: tbrushwyler/Xamarin.BluetoothLE Class Usage Examples

Public Methods

Method Description
OnCharacteristicChanged ( Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattCharacteristic characteristic ) : void

Callback triggered as a result of a remote characteristic notification.

OnCharacteristicRead ( Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattCharacteristic characteristic, GattStatus status ) : void

Raises the characteristic read event.

OnConnectionStateChange ( Android.Bluetooth.BluetoothGatt gatt, GattStatus status, ProfileState newState ) : void

Raises the connection state change event.

OnServicesDiscovered ( Android.Bluetooth.BluetoothGatt gatt, GattStatus status ) : void

Raises the services discovered event.

Method Details

OnCharacteristicChanged() public method

Callback triggered as a result of a remote characteristic notification.
public OnCharacteristicChanged ( Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattCharacteristic characteristic ) : void
gatt Android.Bluetooth.BluetoothGatt Gatt.
characteristic Android.Bluetooth.BluetoothGattCharacteristic Characteristic.
return void

OnCharacteristicRead() public method

Raises the characteristic read event.
public OnCharacteristicRead ( Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattCharacteristic characteristic, GattStatus status ) : void
gatt Android.Bluetooth.BluetoothGatt Gatt.
characteristic Android.Bluetooth.BluetoothGattCharacteristic Characteristic.
status GattStatus Status.
return void

OnConnectionStateChange() public method

Raises the connection state change event.
public OnConnectionStateChange ( Android.Bluetooth.BluetoothGatt gatt, GattStatus status, ProfileState newState ) : void
gatt Android.Bluetooth.BluetoothGatt Gatt.
status GattStatus Status.
newState ProfileState New state.
return void

OnServicesDiscovered() public method

Raises the services discovered event.
public OnServicesDiscovered ( Android.Bluetooth.BluetoothGatt gatt, GattStatus status ) : void
gatt Android.Bluetooth.BluetoothGatt Gatt.
status GattStatus Status.
return void