C# Class BluetoothLE.Droid.Adapter

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

Public Methods

Method 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

Method 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 method

Initializes a new instance of the BluetoothLE.Droid.Adapter class.
public Adapter ( ) : System
return System

ConnectToDevice() public method

Connect to a device.
public ConnectToDevice ( IDevice device ) : void
device IDevice The device.
return void

DisconnectDevice() public method

Discconnect from a device.
public DisconnectDevice ( IDevice device ) : void
device IDevice The device.
return void

OnLeScan() public method

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

StartScanningForDevices() public method

Start scanning for devices.
public StartScanningForDevices ( ) : void
return void

StopScanningForDevices() public method

Stop scanning for devices.
public StopScanningForDevices ( ) : void
return void