C# Class BluetoothLE.Droid.Adapter

Concrete implementation of BluetoothLE.Core.IAdapter interface.
Inheritance: Java.Lang.Object, BluetoothAdapter.ILeScanCallback, IAdapter
Afficher le fichier Open project: tbrushwyler/Xamarin.BluetoothLE

Méthodes publiques

Méthode Description
Adapter ( ) : System

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

ConnectToDevice ( IDevice device ) : void

Connect to a device.

DisconnectDevice ( IDevice device ) : void

Discconnect from a device.

OnLeScan ( Android.Bluetooth.BluetoothDevice bleDevice, int rssi, byte scanRecord ) : void

Raises the le scan event.

StartScanningForDevices ( ) : void

Start scanning for devices.

StopScanningForDevices ( ) : void

Stop scanning for devices.

Private Methods

Méthode Description
BluetoothGatt_DeviceConnected ( object sender, DeviceConnectionEventArgs e ) : void
BluetoothGatt_DeviceDisconnected ( object sender, DeviceConnectionEventArgs e ) : void
PerformConnectToDevice ( IDevice device ) : void
PerformDisconnect ( IDevice device ) : void

Method Details

Adapter() public méthode

Initializes a new instance of the BluetoothLE.Droid.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

OnLeScan() public méthode

Raises the le scan event.
public OnLeScan ( Android.Bluetooth.BluetoothDevice bleDevice, int rssi, byte scanRecord ) : void
bleDevice Android.Bluetooth.BluetoothDevice The BLE device that was discovered.
rssi int Rssi.
scanRecord byte Scan record.
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