C# Class BluetoothLE.Droid.GattCallback

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

Méthodes publiques

Méthode 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 méthode

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.
Résultat void

OnCharacteristicRead() public méthode

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.
Résultat void

OnConnectionStateChange() public méthode

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.
Résultat void

OnServicesDiscovered() public méthode

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