C# Class Plugin.BLE.iOS.Adapter

Inheritance: Plugin.BLE.Abstractions.AdapterBase
Afficher le fichier Open project: xabre/xamarin-bluetooth-le Class Usage Examples

Méthodes publiques

Méthode Description
Adapter ( CBCentralManager centralManager ) : System
ConnectToKnownDeviceAsync ( System.Guid deviceGuid, CancellationToken cancellationToken = default(CancellationToken) ) : Task

Connects to known device async. https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/BestPracticesForInteractingWithARemotePeripheralDevice/BestPracticesForInteractingWithARemotePeripheralDevice.html

GetSystemConnectedOrPairedDevices ( System.Guid services = null ) : List
ParseAdvertismentData ( NSDictionary advertisementData ) : List

Méthodes protégées

Méthode 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

Méthode Description
ContainsDevice ( IEnumerable list, CBPeripheral device ) : bool
ParseDeviceGuid ( CBPeripheral peripherial ) : System.Guid
WaitForState ( CBCentralManagerState state, CancellationToken cancellationToken, bool configureAwait = false ) : Task

Method Details

Adapter() public méthode

public Adapter ( CBCentralManager centralManager ) : System
centralManager CBCentralManager
Résultat System

ConnectToDeviceNativeAsync() protected méthode

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

ConnectToKnownDeviceAsync() public méthode

Connects to known device async. https://developer.apple.com/library/ios/documentation/NetworkingInternetWeb/Conceptual/CoreBluetooth_concepts/BestPracticesForInteractingWithARemotePeripheralDevice/BestPracticesForInteractingWithARemotePeripheralDevice.html
public ConnectToKnownDeviceAsync ( System.Guid deviceGuid, CancellationToken cancellationToken = default(CancellationToken) ) : Task
deviceGuid System.Guid Device GUID.
cancellationToken System.Threading.CancellationToken
Résultat Task

DisconnectDeviceNative() protected méthode

protected DisconnectDeviceNative ( IDevice device ) : void
device IDevice
Résultat void

GetSystemConnectedOrPairedDevices() public méthode

public GetSystemConnectedOrPairedDevices ( System.Guid services = null ) : List
services System.Guid
Résultat List

ParseAdvertismentData() public static méthode

public static ParseAdvertismentData ( NSDictionary advertisementData ) : List
advertisementData NSDictionary
Résultat List

StartScanningForDevicesNativeAsync() protected méthode

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

StopScanNative() protected méthode

protected StopScanNative ( ) : void
Résultat void