connect-sdk / de.proglove.sdk.scanner / ScannerManager
ScannerManager
class ~~ScannerManager~~ :
IScannerManager
Deprecated: Please, use PgManager instead.
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.
Constructors
Name | Summary |
---|---|
<init> | ScannerManager(logger: Logger ? = null) |
Functions
Name | Summary |
---|---|
connect | Connect to the ProGlove Connect SDK Service Triggers a Service Binding via (AIDL) IPC to the ProGlove Connect App.fun connect(context: Context , debug: Boolean ): Boolean |
disconnect | Disconnect from a currently connected Markfun 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.fun ensureConnectionToService(context: Context ): Boolean |
isConnectedToScanner | Information, if this ScannerManager is currently connected to the ProGlove Connect App and to a Scannerfun isConnectedToScanner(): Boolean |
isConnectedToService | Information, if this ScannerManager is currently connected to the ProGlove Connect Appfun 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.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.fun startPairingFromPinnedActivity(context: Context ): Boolean |
subscribeToScans | Subscribe to Connection Information and Scanned Barcodesfun subscribeToScans(callback: IScannerOutput ): Unit |
subscribeToServiceEvents | Subscribe to Connection Information of the sdk-servicefun subscribeToServiceEvents(callback: IServiceOutput ): Unit |
unsubscribeFromScans | Unsubscribe from Connection Information and Scanned Barcodesfun unsubscribeFromScans(callback: IScannerOutput ): Unit |
unsubscribeFromServiceEvents | Unsubscribe Connection Information of the sdk-servicefun unsubscribeFromServiceEvents(callback: IServiceOutput ): Unit |