C# Class Plugin.BLE.Android.Device

Inheritance: Plugin.BLE.Abstractions.DeviceBase
ファイルを表示 Open project: xabre/xamarin-bluetooth-le Class Usage Examples

Public Methods

Method Description
CloseGatt ( ) : void
Device ( Adapter adapter, Android.Bluetooth.BluetoothDevice nativeDevice, Android.Bluetooth.BluetoothGatt gatt, IGattCallback gattCallback, int rssi, byte advertisementData = null ) : System
Disconnect ( ) : void
ParseScanRecord ( byte scanRecord ) : List
Update ( Android.Bluetooth.BluetoothDevice nativeDevice, Android.Bluetooth.BluetoothGatt gatt, IGattCallback gattCallback ) : void
UpdateRssiAsync ( ) : Task

Protected Methods

Method Description
GetServicesNativeAsync ( ) : Task>
GetState ( ) : DeviceState

Private Methods

Method Description
ParseDeviceId ( ) : System.Guid

Method Details

CloseGatt() public method

public CloseGatt ( ) : void
return void

Device() public method

public Device ( Adapter adapter, Android.Bluetooth.BluetoothDevice nativeDevice, Android.Bluetooth.BluetoothGatt gatt, IGattCallback gattCallback, int rssi, byte advertisementData = null ) : System
adapter Adapter
nativeDevice Android.Bluetooth.BluetoothDevice
gatt Android.Bluetooth.BluetoothGatt
gattCallback IGattCallback
rssi int
advertisementData byte
return System

Disconnect() public method

public Disconnect ( ) : void
return void

GetServicesNativeAsync() protected method

protected GetServicesNativeAsync ( ) : Task>
return Task>

GetState() protected method

protected GetState ( ) : DeviceState
return DeviceState

ParseScanRecord() public static method

public static ParseScanRecord ( byte scanRecord ) : List
scanRecord byte
return List

Update() public method

public Update ( Android.Bluetooth.BluetoothDevice nativeDevice, Android.Bluetooth.BluetoothGatt gatt, IGattCallback gattCallback ) : void
nativeDevice Android.Bluetooth.BluetoothDevice
gatt Android.Bluetooth.BluetoothGatt
gattCallback IGattCallback
return void

UpdateRssiAsync() public method

public UpdateRssiAsync ( ) : Task
return Task