C# Класс BluetoothLE.iOS.Device

Concrete implmentation of BluetoothLE.Core.IDevice interface
Наследование: IDevice, IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Device ( CBPeripheral peripheral ) : System

Initializes a new instance of the BluetoothLE.iOS.Device class.

DeviceIdentifierToGuid ( NSUuid id ) : System.Guid

Gets the device identifier.

Disconnect ( ) : void

Discconnect from the device.

DiscoverServices ( ) : void

Initiate a service discovery on the device

Dispose ( ) : void

Releases all resource used by the BluetoothLE.iOS.Device object.

Call Dispose when you are finished using the BluetoothLE.iOS.Device. The Dispose method leaves the BluetoothLE.iOS.Device in an unusable state. After calling Dispose, you must release all references to the BluetoothLE.iOS.Device so the garbage collector can reclaim the memory that the BluetoothLE.iOS.Device was occupying.

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

Метод Описание
DiscoveredService ( object sender, NSErrorEventArgs args ) : void

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

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

Initializes a new instance of the BluetoothLE.iOS.Device class.
public Device ( CBPeripheral peripheral ) : System
peripheral CBPeripheral Native peripheral.
Результат System

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

Gets the device identifier.
public static DeviceIdentifierToGuid ( NSUuid id ) : System.Guid
id NSUuid The device identifier as a NSUuid.
Результат System.Guid

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

Discconnect from the device.
public Disconnect ( ) : void
Результат void

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

Initiate a service discovery on the device
public DiscoverServices ( ) : void
Результат void

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

Releases all resource used by the BluetoothLE.iOS.Device object.
Call Dispose when you are finished using the BluetoothLE.iOS.Device. The Dispose method leaves the BluetoothLE.iOS.Device in an unusable state. After calling Dispose, you must release all references to the BluetoothLE.iOS.Device so the garbage collector can reclaim the memory that the BluetoothLE.iOS.Device was occupying.
public Dispose ( ) : void
Результат void