C# Класс Plugin.BLE.iOS.Adapter

Наследование: Plugin.BLE.Abstractions.AdapterBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
ConnectToDeviceNativeAsync ( IDevice device, bool autoconnect, CancellationToken cancellationToken ) : Task
DisconnectDeviceNative ( IDevice device ) : void
StartScanningForDevicesNativeAsync ( System.Guid serviceUuids, bool allowDuplicatesKey, CancellationToken scanCancellationToken ) : Task
StopScanNative ( ) : void

Приватные методы

Метод Описание
ContainsDevice ( IEnumerable list, CBPeripheral device ) : bool
ParseDeviceGuid ( CBPeripheral peripherial ) : System.Guid
WaitForState ( CBCentralManagerState state, CancellationToken cancellationToken, bool configureAwait = false ) : Task

Описание методов

Adapter() публичный Метод

public Adapter ( CBCentralManager centralManager ) : System
centralManager CBCentralManager
Результат System

ConnectToDeviceNativeAsync() защищенный Метод

protected ConnectToDeviceNativeAsync ( IDevice device, bool autoconnect, CancellationToken cancellationToken ) : Task
device IDevice
autoconnect bool
cancellationToken System.Threading.CancellationToken
Результат Task

ConnectToKnownDeviceAsync() публичный Метод

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
Результат Task

DisconnectDeviceNative() защищенный Метод

protected DisconnectDeviceNative ( IDevice device ) : void
device IDevice
Результат void

GetSystemConnectedOrPairedDevices() публичный Метод

public GetSystemConnectedOrPairedDevices ( System.Guid services = null ) : List
services System.Guid
Результат List

ParseAdvertismentData() публичный статический Метод

public static ParseAdvertismentData ( NSDictionary advertisementData ) : List
advertisementData NSDictionary
Результат List

StartScanningForDevicesNativeAsync() защищенный Метод

protected StartScanningForDevicesNativeAsync ( System.Guid serviceUuids, bool allowDuplicatesKey, CancellationToken scanCancellationToken ) : Task
serviceUuids System.Guid
allowDuplicatesKey bool
scanCancellationToken System.Threading.CancellationToken
Результат Task

StopScanNative() защищенный Метод

protected StopScanNative ( ) : void
Результат void