Метод | Описание | |
---|---|---|
ConnectToDeviceAsync ( IDevice device, bool autoconnect = false, |
||
ConnectToKnownDeviceAsync ( System.Guid deviceGuid, |
||
DisconnectDeviceAsync ( IDevice device ) : Task | ||
GetSystemConnectedOrPairedDevices ( System.Guid services = null ) : List |
||
HandleConnectedDevice ( IDevice device ) : void | ||
HandleConnectionFail ( IDevice device, string errorMessage ) : void | ||
HandleDisconnectedDevice ( bool disconnectRequested, IDevice device ) : void | ||
HandleDiscoveredDevice ( IDevice device ) : void | ||
StartScanningForDevicesAsync ( System.Guid serviceUuids = null, bool>.Func |
||
StopScanningForDevicesAsync ( ) : Task |
Метод | Описание | |
---|---|---|
AdapterBase ( ) : System | ||
ConnectToDeviceNativeAsync ( IDevice device, bool autoconnect, |
||
DisconnectDeviceNative ( IDevice device ) : void | ||
StartScanningForDevicesNativeAsync ( System.Guid serviceUuids, bool allowDuplicatesKey, |
||
StopScanNative ( ) : void |
Метод | Описание | |
---|---|---|
CleanupScan ( ) : void |
public ConnectToDeviceAsync ( IDevice device, bool autoconnect = false, |
||
device | IDevice | |
autoconnect | bool | |
cancellationToken | ||
Результат | Task |
protected abstract ConnectToDeviceNativeAsync ( IDevice device, bool autoconnect, |
||
device | IDevice | |
autoconnect | bool | |
cancellationToken | ||
Результат | Task |
public abstract ConnectToKnownDeviceAsync ( System.Guid deviceGuid, |
||
deviceGuid | System.Guid | |
cancellationToken | ||
Результат | Task |
public DisconnectDeviceAsync ( IDevice device ) : Task | ||
device | IDevice | |
Результат | Task |
protected abstract DisconnectDeviceNative ( IDevice device ) : void | ||
device | IDevice | |
Результат | void |
public abstract GetSystemConnectedOrPairedDevices ( System.Guid services = null ) : List |
||
services | System.Guid | |
Результат | List |
public HandleConnectedDevice ( IDevice device ) : void | ||
device | IDevice | |
Результат | void |
public HandleConnectionFail ( IDevice device, string errorMessage ) : void | ||
device | IDevice | |
errorMessage | string | |
Результат | void |
public HandleDisconnectedDevice ( bool disconnectRequested, IDevice device ) : void | ||
disconnectRequested | bool | |
device | IDevice | |
Результат | void |
public HandleDiscoveredDevice ( IDevice device ) : void | ||
device | IDevice | |
Результат | void |
public StartScanningForDevicesAsync ( System.Guid serviceUuids = null, bool>.Func |
||
serviceUuids | System.Guid | |
deviceFilter | bool>.Func | |
allowDuplicatesKey | bool | |
cancellationToken | ||
Результат | Task |
protected abstract StartScanningForDevicesNativeAsync ( System.Guid serviceUuids, bool allowDuplicatesKey, |
||
serviceUuids | System.Guid | |
allowDuplicatesKey | bool | |
scanCancellationToken | ||
Результат | Task |
protected abstract StopScanNative ( ) : void | ||
Результат | void |
public StopScanningForDevicesAsync ( ) : Task | ||
Результат | Task |