C# Class Plugin.BLE.Android.GattCallback

Inheritance: Android.Bluetooth.BluetoothGattCallback, IGattCallback
Afficher le fichier Open project: xabre/xamarin-bluetooth-le Class Usage Examples

Méthodes publiques

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

Private Methods

Méthode Description
GetExceptionFromGattStatus ( GattStatus status ) : Exception

Method Details

GattCallback() public méthode

public GattCallback ( Adapter adapter ) : System
adapter Adapter
Résultat System

OnCharacteristicChanged() public méthode

public OnCharacteristicChanged ( Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattCharacteristic characteristic ) : void
gatt Android.Bluetooth.BluetoothGatt
characteristic Android.Bluetooth.BluetoothGattCharacteristic
Résultat void

OnCharacteristicRead() public méthode

public OnCharacteristicRead ( Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattCharacteristic characteristic, GattStatus status ) : void
gatt Android.Bluetooth.BluetoothGatt
characteristic Android.Bluetooth.BluetoothGattCharacteristic
status GattStatus
Résultat void

OnCharacteristicWrite() public méthode

public OnCharacteristicWrite ( Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattCharacteristic characteristic, GattStatus status ) : void
gatt Android.Bluetooth.BluetoothGatt
characteristic Android.Bluetooth.BluetoothGattCharacteristic
status GattStatus
Résultat void

OnConnectionStateChange() public méthode

public OnConnectionStateChange ( Android.Bluetooth.BluetoothGatt gatt, GattStatus status, ProfileState newState ) : void
gatt Android.Bluetooth.BluetoothGatt
status GattStatus
newState ProfileState
Résultat void

OnDescriptorRead() public méthode

public OnDescriptorRead ( Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattDescriptor descriptor, GattStatus status ) : void
gatt Android.Bluetooth.BluetoothGatt
descriptor Android.Bluetooth.BluetoothGattDescriptor
status GattStatus
Résultat void

OnDescriptorWrite() public méthode

public OnDescriptorWrite ( Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattDescriptor descriptor, GattStatus status ) : void
gatt Android.Bluetooth.BluetoothGatt
descriptor Android.Bluetooth.BluetoothGattDescriptor
status GattStatus
Résultat void

OnReadRemoteRssi() public méthode

public OnReadRemoteRssi ( Android.Bluetooth.BluetoothGatt gatt, int rssi, GattStatus status ) : void
gatt Android.Bluetooth.BluetoothGatt
rssi int
status GattStatus
Résultat void

OnReliableWriteCompleted() public méthode

public OnReliableWriteCompleted ( Android.Bluetooth.BluetoothGatt gatt, GattStatus status ) : void
gatt Android.Bluetooth.BluetoothGatt
status GattStatus
Résultat void

OnServicesDiscovered() public méthode

public OnServicesDiscovered ( Android.Bluetooth.BluetoothGatt gatt, GattStatus status ) : void
gatt Android.Bluetooth.BluetoothGatt
status GattStatus
Résultat void