connect-sdk / de.proglove.sdk / PgManager / startPairingFromPinnedActivity
startPairingFromPinnedActivity
fun startPairingFromPinnedActivity(context:
Context
):
Boolean
Start the Pairing Process with a Proglove MARK2 Scanner Upon triggering this function, the ProGlove Connect App will show the Pairing Activity (basically, a QR-Code to scan with the MARK2) After a) a timeout has run out or b) the user has scanned the Barcode and hence paired a MARK2 to ProGlove Connect App, the shown activity will disappear. Use this call to start pairing from a pinned task.
Parameters
context
- : the currently pinned activity
Return if the service was NOT connected beforehand or some other error occurred, the connectToScanner Method will return false - otherwise, it will return true.