C# Class Plugin.BLE.Android.Characteristic

Inheritance: Plugin.BLE.Abstractions.CharacteristicBase
Mostrar archivo Open project: xabre/xamarin-bluetooth-le Class Usage Examples

Public Methods

Method Description
Characteristic ( Android.Bluetooth.BluetoothGattCharacteristic nativeCharacteristic, Android.Bluetooth.BluetoothGatt gatt, IGattCallback gattCallback ) : System

Protected Methods

Method Description
GetDescriptorsNativeAsync ( ) : Task>
ReadNativeAsync ( ) : Task
StartUpdatesNativeAsync ( ) : System.Threading.Tasks.Task
StopUpdatesNativeAsync ( ) : System.Threading.Tasks.Task
WriteNativeAsync ( byte data, CharacteristicWriteType writeType ) : Task

Private Methods

Method Description
InternalWrite ( byte data ) : void
OnCharacteristicValueChanged ( object sender, CharacteristicReadCallbackEventArgs e ) : void
ReadInternal ( ) : void

Method Details

Characteristic() public method

public Characteristic ( Android.Bluetooth.BluetoothGattCharacteristic nativeCharacteristic, Android.Bluetooth.BluetoothGatt gatt, IGattCallback gattCallback ) : System
nativeCharacteristic Android.Bluetooth.BluetoothGattCharacteristic
gatt Android.Bluetooth.BluetoothGatt
gattCallback IGattCallback
return System

GetDescriptorsNativeAsync() protected method

protected GetDescriptorsNativeAsync ( ) : Task>
return Task>

ReadNativeAsync() protected method

protected ReadNativeAsync ( ) : Task
return Task

StartUpdatesNativeAsync() protected method

protected StartUpdatesNativeAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

StopUpdatesNativeAsync() protected method

protected StopUpdatesNativeAsync ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

WriteNativeAsync() protected method

protected WriteNativeAsync ( byte data, CharacteristicWriteType writeType ) : Task
data byte
writeType CharacteristicWriteType
return Task