Bluetooth Class

Entry point to all Bluetooth LE functionality.

Definition

Namespace: InTheHand.Bluetooth
Assembly: InTheHand.BluetoothLE (in InTheHand.BluetoothLE.dll) Version: 4.0.28+5cdf1cfd21064ea31c5de33d160200ca1c4bc218
C#
public static class Bluetooth
Inheritance
Object    Bluetooth

Remarks

Several platforms require permissions for this functionality to work:- iOS 13 (and above) - Set NSBluetoothAlwaysUsageDescription in your Info.plist to a descriptive message to be displayed to the user iOS (older versions) - Set NSBluetoothPeripheralUsageDescription in your Info.plist to a descriptive message to be displayed to the user Android - Add <uses-permission android:name="android.permission.BLUETOOTH" /> to your android manifest. To enable scanning also add <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> and <uses-permission android:name="android.permission.COARSE_LOCATION" /> Windows - Add the Bluetooth permission

Methods

GetAvailabilityAsync Returns true if Bluetooth is physically available and user has given the app permission.
GetPairedDevicesAsync 
RequestDeviceAsync Performs a device lookup and prompts the user for permission if required.
RequestLEScanAsync 
ScanForDevicesAsync 

Events

AdvertisementReceived 
AvailabilityChanged Bluetooth availability has changed, for example by disabling the radio or revoking user permission.

See Also