C# Класс BluetoothLE.Droid.GattCallback

Gatt callback to handle Gatt events.
Наследование: Android.Bluetooth.BluetoothGattCallback
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

OnCharacteristicChanged() публичный Метод

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.
Результат void

OnCharacteristicRead() публичный Метод

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.
Результат void

OnConnectionStateChange() публичный Метод

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.
Результат void

OnServicesDiscovered() публичный Метод

Raises the services discovered event.
public OnServicesDiscovered ( Android.Bluetooth.BluetoothGatt gatt, GattStatus status ) : void
gatt Android.Bluetooth.BluetoothGatt Gatt.
status GattStatus Status.
Результат void