apidocs / com.nimmsta.core.android.bluetooth / DevicePairingManager / <init>

<init>

DevicePairingManager(context: Context)

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.

Example:

pairAsync() pairAsync() unpairAsync() pairAsync() will pair once, unpair once and pair again. After all the device is paired.