C# Class Plugin.BLE.Abstractions.Utils.FakeAdapter

Inheritance: AdapterBase
显示文件 Open project: xabre/xamarin-bluetooth-le

Public Methods

Method Description
ConnectToKnownDeviceAsync ( System.Guid deviceGuid, CancellationToken cancellationToken ) : Task
GetSystemConnectedOrPairedDevices ( System.Guid services = null ) : List

Protected Methods

Method Description
ConnectToDeviceNativeAsync ( IDevice device, bool autoconnect, CancellationToken cancellationToken ) : Task
DisconnectDeviceNative ( IDevice device ) : void
StartScanningForDevicesNativeAsync ( System.Guid serviceUuids, bool allowDuplicatesKey, CancellationToken scanCancellationToken ) : Task
StopScanNative ( ) : void

Private Methods

Method Description
TraceUnavailability ( ) : void

Method Details

ConnectToDeviceNativeAsync() protected method

protected ConnectToDeviceNativeAsync ( IDevice device, bool autoconnect, CancellationToken cancellationToken ) : Task
device IDevice
autoconnect bool
cancellationToken System.Threading.CancellationToken
return Task

ConnectToKnownDeviceAsync() public method

public ConnectToKnownDeviceAsync ( System.Guid deviceGuid, CancellationToken cancellationToken ) : Task
deviceGuid System.Guid
cancellationToken System.Threading.CancellationToken
return Task

DisconnectDeviceNative() protected method

protected DisconnectDeviceNative ( IDevice device ) : void
device IDevice
return void

GetSystemConnectedOrPairedDevices() public method

public GetSystemConnectedOrPairedDevices ( System.Guid services = null ) : List
services System.Guid
return List

StartScanningForDevicesNativeAsync() protected method

protected StartScanningForDevicesNativeAsync ( System.Guid serviceUuids, bool allowDuplicatesKey, CancellationToken scanCancellationToken ) : Task
serviceUuids System.Guid
allowDuplicatesKey bool
scanCancellationToken System.Threading.CancellationToken
return Task

StopScanNative() protected method

protected StopScanNative ( ) : void
return void