C# Class BluetoothLE.iOS.Adapter

Concrete implementation of BluetoothLE.Core.IAdapter interface.
Inheritance: IAdapter
Afficher le fichier Open project: tbrushwyler/Xamarin.BluetoothLE Class Usage Examples

Méthodes publiques

Méthode Description
Adapter ( ) : System

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

ConnectToDevice ( IDevice device ) : void

Connect to a device.

DisconnectDevice ( IDevice device ) : void

Discconnect from a device.

StartScanningForDevices ( ) : void

Start scanning for devices.

StopScanningForDevices ( ) : void

Stop scanning for devices.

Private Methods

Méthode Description
ConnectedPeripheral ( object sender, CBPeripheralEventArgs e ) : void
DisconnectedPeripheral ( object sender, CBPeripheralErrorEventArgs e ) : void
DiscoveredPeripheral ( object sender, CBDiscoveredPeripheralEventArgs e ) : void
FailedToConnectPeripheral ( object sender, CBPeripheralErrorEventArgs e ) : void
UpdatedState ( object sender, EventArgs e ) : void
WaitForState ( CBCentralManagerState state ) : Task

Method Details

Adapter() public méthode

Initializes a new instance of the BluetoothLE.iOS.Adapter class.
public Adapter ( ) : System
Résultat System

ConnectToDevice() public méthode

Connect to a device.
public ConnectToDevice ( IDevice device ) : void
device IDevice The device.
Résultat void

DisconnectDevice() public méthode

Discconnect from a device.
public DisconnectDevice ( IDevice device ) : void
device IDevice The device.
Résultat void

StartScanningForDevices() public méthode

Start scanning for devices.
public StartScanningForDevices ( ) : void
Résultat void

StopScanningForDevices() public méthode

Stop scanning for devices.
public StopScanningForDevices ( ) : void
Résultat void