apidocs / com.nimmsta.core.android.bluetooth

Package com.nimmsta.core.android.bluetooth

Types

BLEScanResult

BLE Scan Result represents a scanned bluetooth device from an Android BLE Scanner, e.g. NIMMSTABLEScanner. It provides APIs to connect to the Device as a NIMMSTA Device: createDevice and then call NIMMSTADevice.connectAsync.

class BLEScanResult : SearchScanResult

DeviceBluetoothService

Device Bluetooth Service for Android. This service abstracts the Android service to our Task-Based Request-Response-Model. You can read/write characteristics and be notified by a Task instead of a callback where you need to identify the request. It's also possible to manipulate the MTU and be notified about changes. For that a delegate needs to be provided, which also provides events for connection changes and errors.

class DeviceBluetoothService : BluetoothGattCallback

DeviceBluetoothServiceDelegate

Delegate for DeviceBluetoothService.

interface DeviceBluetoothServiceDelegate

DevicePairingManager

This class handles all known devices and the pairing with the app. It provides methods to pair and unpair. For concurrent actions it will do last action wins, but will sort out duplicates. It will also store devices that are currently paired throughout relaunch of the application to disconnect died devices.

class DevicePairingManager

DeviceUtil

BLE Device Utils.

open class DeviceUtil

HighPriorityHandler

This class manages the compatbility with "High Priority". High Priority is a mode of Android where you can call mBluetoothGatt?.requestConnectionPriority(CONNECTION_PRIORITY_HIGH). On some devices this leads to loss of connection, on others it improves the performance roughly 50%.

class HighPriorityHandler

NIMMSTABLEScanner

NIMMSTA BLE Scanner which is a separate layer between Android Scanner and UI in order to

class NIMMSTABLEScanner : ScannerWithScanJobsAndCache