C# Class Plugin.BLE.iOS.Device

Inheritance: Plugin.BLE.Abstractions.DeviceBase
显示文件 Open project: xabre/xamarin-bluetooth-le Class Usage Examples

Public Methods

Method Description
ClearServices ( ) : void
Device ( Adapter adapter, CBPeripheral nativeDevice ) : System
Device ( Adapter adapter, CBPeripheral nativeDevice, string name, int rssi, List advertisementRecords ) : System
Update ( CBPeripheral nativeDevice ) : void
UpdateRssiAsync ( ) : Task

Protected Methods

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

Private Methods

Method Description
OnNameUpdated ( object sender, EventArgs e ) : void

Method Details

ClearServices() public method

public ClearServices ( ) : void
return void

Device() public method

public Device ( Adapter adapter, CBPeripheral nativeDevice ) : System
adapter Adapter
nativeDevice CBPeripheral
return System

Device() public method

public Device ( Adapter adapter, CBPeripheral nativeDevice, string name, int rssi, List advertisementRecords ) : System
adapter Adapter
nativeDevice CBPeripheral
name string
rssi int
advertisementRecords List
return System

GetServicesNativeAsync() protected method

protected GetServicesNativeAsync ( ) : Task>
return Task>

GetState() protected method

protected GetState ( ) : DeviceState
return DeviceState

Update() public method

public Update ( CBPeripheral nativeDevice ) : void
nativeDevice CBPeripheral
return void

UpdateRssiAsync() public method

public UpdateRssiAsync ( ) : Task
return Task