Bluetooth Classic Devices¶
Using the Companion App (Recommended)¶
The recommended way to manage Bluetooth Classic device connections is through the Socket Mobile Companion App. The Companion App handles device discovery, pairing, and connection management on behalf of the consumer app, providing a consistent and streamlined experience.
The sections below apply only if the consumer app intends to manage Bluetooth Classic device connections directly, without relying on the Companion App’s device connection management.
Bluetooth Classic Discovery¶
To discover Bluetooth Classic devices, call AddBluetoothDeviceAsync with the kBluetoothClassic
mode. The behavior is platform-specific:
iOS and Windows: Opens the native Bluetooth device picker.
Android: Fires
DeviceDiscoveredevents as devices are found nearby.
Example:
await capture.AddBluetoothDeviceAsync(ICaptureProperty.Values.BluetoothDiscoveryMode.kBluetoothClassic);
On Windows, the picker is automatically anchored to the foreground window. Optionally set
WindowsBluetoothPicker.WindowHandle before calling this method to anchor it to a specific window.