C# Class Plugin.BLE.Android.GattCallback

Inheritance: Android.Bluetooth.BluetoothGattCallback, IGattCallback
显示文件 Open project: xabre/xamarin-bluetooth-le Class Usage Examples

Public Methods

Method 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

Method Description
GetExceptionFromGattStatus ( GattStatus status ) : Exception

Method Details

GattCallback() public method

public GattCallback ( Adapter adapter ) : System
adapter Adapter
return System

OnCharacteristicChanged() public method

public OnCharacteristicChanged ( Android.Bluetooth.BluetoothGatt gatt, Android.Bluetooth.BluetoothGattCharacteristic characteristic ) : void
gatt Android.Bluetooth.BluetoothGatt
characteristic Android.Bluetooth.BluetoothGattCharacteristic
return void

OnCharacteristicRead() public method

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

OnCharacteristicWrite() public method

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

OnConnectionStateChange() public method

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

OnDescriptorRead() public method

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

OnDescriptorWrite() public method

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

OnReadRemoteRssi() public method

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

OnReliableWriteCompleted() public method

public OnReliableWriteCompleted ( Android.Bluetooth.BluetoothGatt gatt, GattStatus status ) : void
gatt Android.Bluetooth.BluetoothGatt
status GattStatus
return void

OnServicesDiscovered() public method

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