C# Class BluetoothLE.iOS.Device

Concrete implmentation of BluetoothLE.Core.IDevice interface
Inheritance: IDevice, IDisposable
Show file Open project: tbrushwyler/Xamarin.BluetoothLE Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
DiscoveredService ( object sender, NSErrorEventArgs args ) : void

Method Details

Device() public method

Initializes a new instance of the BluetoothLE.iOS.Device class.
public Device ( CBPeripheral peripheral ) : System
peripheral CBPeripheral Native peripheral.
return System

DeviceIdentifierToGuid() public static method

Gets the device identifier.
public static DeviceIdentifierToGuid ( NSUuid id ) : System.Guid
id NSUuid The device identifier as a NSUuid.
return System.Guid

Disconnect() public method

Discconnect from the device.
public Disconnect ( ) : void
return void

DiscoverServices() public method

Initiate a service discovery on the device
public DiscoverServices ( ) : void
return void

Dispose() public method

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
return void