connect-sdk / de.proglove.sdk.scanner / IScannerManager
IScannerManager
interface ~~IScannerManager~~
Deprecated: Please, use PgManager instead.
Main implementation interface to use the ProGlove MARK2 Scanner. Check the Project Readme for a general introduction
Functions
| Name | Summary |
|---|---|
| connect | Connect to the ProGlove Connect SDK Service Triggers a Service Binding via (AIDL) IPC to the ProGlove Connect App.abstract fun ~~connect~~(context:Context, debug:Boolean= false):Boolean |
| disconnect | Disconnect from a currently connected Markabstract fun ~~disconnect~~():Boolean |
| ensureConnectionToService | Connect to the ProGlove Connect SDK Service, if not connected already. Triggers a Service Binding via (AIDL) IPC to the ProGlove Connect App. Will automatically re-establish the connection if necessary.abstract fun ~~ensureConnectionToService~~(context:Context):Boolean |
| isConnectedToScanner | Information, if this ScannerManager is currently connected to the ProGlove Connect App and to a Scannerabstract fun ~~isConnectedToScanner~~():Boolean |
| isConnectedToService | Information, if this ScannerManager is currently connected to the ProGlove Connect Appabstract fun ~~isConnectedToService~~():Boolean |
| startPairing | 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 background task.abstract fun ~~startPairing~~():Boolean |
| startPairingFromPinnedActivity | 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.abstract fun ~~startPairingFromPinnedActivity~~(context:Context):Boolean |
| subscribeToScans | Subscribe to Connection Information and Scanned Barcodesabstract fun ~~subscribeToScans~~(callback:IScannerOutput):Unit |
| subscribeToServiceEvents | Subscribe to Connection Information of the sdk-serviceabstract fun ~~subscribeToServiceEvents~~(callback:IServiceOutput):Unit |
| unsubscribeFromScans | Unsubscribe from Connection Information and Scanned Barcodesabstract fun ~~unsubscribeFromScans~~(callback:IScannerOutput):Unit |
| unsubscribeFromServiceEvents | Unsubscribe Connection Information of the sdk-serviceabstract fun ~~unsubscribeFromServiceEvents~~(callback:IServiceOutput):Unit |
Inheritors
| Name | Summary |
|---|---|
| ScannerManager | ScannerManager is no longer supported. All calls are relayed to an instance of PgManager with default parameters. This class is only maintained for backwards-compatibility and will be removed in a future update.class ~~ScannerManager~~ :IScannerManager |