C# Класс Plugin.BLE.Android.GattCallback

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

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

Метод Описание
GattCallback ( Adapter adapter ) : System
OnCharacteristicChanged ( Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattCharacteristic characteristic ) : void
OnCharacteristicRead ( Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattCharacteristic characteristic, GattStatus status ) : void
OnCharacteristicWrite ( Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattCharacteristic characteristic, GattStatus status ) : void
OnConnectionStateChange ( Android.Bluetooth.BluetoothGatt gatt, GattStatus status, ProfileState newState ) : void
OnDescriptorRead ( Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattDescriptor descriptor, GattStatus status ) : void
OnDescriptorWrite ( Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattDescriptor descriptor, GattStatus status ) : void
OnReadRemoteRssi ( Android.Bluetooth.BluetoothGatt gatt, int rssi, GattStatus status ) : void
OnReliableWriteCompleted ( Android.Bluetooth.BluetoothGatt gatt, GattStatus status ) : void
OnServicesDiscovered ( Android.Bluetooth.BluetoothGatt gatt, GattStatus status ) : void

Приватные методы

Метод Описание
GetExceptionFromGattStatus ( GattStatus status ) : Exception

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

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

public GattCallback ( Adapter adapter ) : System
adapter Adapter
Результат System

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

public OnCharacteristicChanged ( Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattCharacteristic characteristic ) : void
gatt Android.Bluetooth.BluetoothGatt
characteristic Android.Bluetooth.BluetoothGattCharacteristic
Результат void

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

public OnCharacteristicRead ( Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattCharacteristic characteristic, GattStatus status ) : void
gatt Android.Bluetooth.BluetoothGatt
characteristic Android.Bluetooth.BluetoothGattCharacteristic
status GattStatus
Результат void

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

public OnCharacteristicWrite ( Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattCharacteristic characteristic, GattStatus status ) : void
gatt Android.Bluetooth.BluetoothGatt
characteristic Android.Bluetooth.BluetoothGattCharacteristic
status GattStatus
Результат void

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

public OnConnectionStateChange ( Android.Bluetooth.BluetoothGatt gatt, GattStatus status, ProfileState newState ) : void
gatt Android.Bluetooth.BluetoothGatt
status GattStatus
newState ProfileState
Результат void

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

public OnDescriptorRead ( Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattDescriptor descriptor, GattStatus status ) : void
gatt Android.Bluetooth.BluetoothGatt
descriptor Android.Bluetooth.BluetoothGattDescriptor
status GattStatus
Результат void

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

public OnDescriptorWrite ( Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattDescriptor descriptor, GattStatus status ) : void
gatt Android.Bluetooth.BluetoothGatt
descriptor Android.Bluetooth.BluetoothGattDescriptor
status GattStatus
Результат void

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

public OnReadRemoteRssi ( Android.Bluetooth.BluetoothGatt gatt, int rssi, GattStatus status ) : void
gatt Android.Bluetooth.BluetoothGatt
rssi int
status GattStatus
Результат void

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

public OnReliableWriteCompleted ( Android.Bluetooth.BluetoothGatt gatt, GattStatus status ) : void
gatt Android.Bluetooth.BluetoothGatt
status GattStatus
Результат void

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

public OnServicesDiscovered ( Android.Bluetooth.BluetoothGatt gatt, GattStatus status ) : void
gatt Android.Bluetooth.BluetoothGatt
status GattStatus
Результат void