connect-sdk / de.proglove.sdk / IPgManager
IPgManager
interface IPgManager
Functions
Name | Summary |
---|---|
blockPgTrigger | Blocks or unblocks PgTriggers.abstract fun blockPgTrigger(command: PgCommand < BlockPgTriggersParams >, callback: IBlockPgTriggersCallback ): Unit |
changeConfigProfile | Changes configuration profileabstract fun changeConfigProfile(command: PgCommand < PgConfigProfile >, callback: IPgConfigProfileCallback ): Unit |
disconnectDisplay | Disconnect from a currently connected Display deviceabstract fun disconnectDisplay(): Boolean |
disconnectScanner | Disconnect from a currently connected Markabstract fun disconnectScanner(): 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 |
getConfigProfiles | Fetches the configuration profilesabstract fun getConfigProfiles(callback: IPgGetConfigProfilesCallback ): Unit |
getScannerConfig | Fetches the configuration for the connected Scannerabstract fun getScannerConfig(callback: IPgScannerConfigCallback ): Unit |
isConnectedToDisplay | Information, if this DisplayManager is currently connected to the ProGlove Connect App and to a Displayabstract fun isConnectedToDisplay(): 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 |
setNotificationScreen | Sets a notification screen on the connected display device. A notification screen is overlaying any active regular screen, is visible for a set amount of time, but will be replaced by any other notification and any other regular screen. There is a guarantee though, that no internal system notification will overlay your notificationabstract fun ~~setNotificationScreen~~(data: PgScreenData , durationMs: Int , callback: IPgSetScreenCallback ): Unit abstract fun setNotificationScreen(command: PgCommand < PgScreenData >, callback: IPgSetScreenCallback ): Unit |
setScannerConfig | Sets the configuration for the connected Scannerabstract fun setScannerConfig(config: PgScannerConfig , callback: IPgScannerConfigCallback ): Unit |
setScreen | Sets a screen on the connected display deviceabstract fun ~~setScreen~~(data: PgScreenData , callback: IPgSetScreenCallback ): Unit abstract fun setScreen(command: PgCommand < PgScreenData >, callback: IPgSetScreenCallback ): Unit |
showPickDisplayOrientationDialog | Calling this method will display a dialog to change the orientation of a connected display device. PgConnect version 1.2.0+ is required.abstract fun showPickDisplayOrientationDialog(context: Context ): PgError ? |
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 |
subscribeToButtonPresses | Subscribe to pressed buttonsabstract fun subscribeToButtonPresses(callback: IButtonOutput ): Unit |
subscribeToDisplayEvents | Subscribe to connection information for display devicesabstract fun subscribeToDisplayEvents(callback: IDisplayOutput ): Unit |
subscribeToPgTriggersUnblocked | Subscribe to unblocked PgTriggers events.abstract fun subscribeToPgTriggersUnblocked(callback: IPgTriggersUnblockedOutput ): Unit |
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 |
takeImage | Take a picture with MARKabstract fun ~~takeImage~~(config: PgImageConfig , timeoutMs: Int , callback: IPgImageCallback ): Unit abstract fun takeImage(command: PgCommand < PgImageConfig >, callback: IPgImageCallback ): Unit |
triggerFeedback | Triggers a Feedback on the currently connected Markabstract fun ~~triggerFeedback~~(predefinedFeedback: PgPredefinedFeedback , callback: IPgFeedbackCallback ): Unit abstract fun triggerFeedback(command: PgCommand < PgPredefinedFeedback >, callback: IPgFeedbackCallback ): Unit |
unsubscribeFromButtonPresses | Unsubscribe from pressed buttonsabstract fun unsubscribeFromButtonPresses(callback: IButtonOutput ): Unit |
unsubscribeFromDisplayEvents | Unsubscribe from connection information for display devicesabstract fun unsubscribeFromDisplayEvents(callback: IDisplayOutput ): Unit |
unsubscribeFromPgTriggersUnblocked | Unsubscribe from unblocked PgTriggers events.abstract fun unsubscribeFromPgTriggersUnblocked(callback: IPgTriggersUnblockedOutput ): 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 |
---|---|
PgManager | class PgManager : IPgManager , IAidlClientCallback |