class NimmstaAccessibilityService : AccessibilityService, NIMMSTAEventHandler
Provides an Accessibility Service to the Android System. Shows permanent Notification with the Connection Status of the Scanner using AccessibilityNotificationService Inputs scanned barcodes into editable Views using AccessibilityInputService
<init> |
Provides an Accessibility Service to the Android System. Shows permanent Notification with the Connection Status of the Scanner using AccessibilityNotificationService Inputs scanned barcodes into editable Views using AccessibilityInputService NimmstaAccessibilityService() |
serviceConnection |
var serviceConnection: NIMMSTAServiceConnection? |
didConnectAndInit |
Gets called if a scanner gets connected updates notification and scanner display fun didConnectAndInit(: NIMMSTADevice): Unit |
didScanBarcode |
Gets called if the scanner has scanned a barcode Tries to input barcode in input field Handles success fun didScanBarcode(: NIMMSTADevice, : Barcode, : ScanEvent): Unit |
onAccessibilityEvent |
Gets called if the view of the device changed fun onAccessibilityEvent(event: AccessibilityEvent?): Unit |
onDestroy |
fun onDestroy(): Unit |
onError |
Get's called if the scanner throws an error fun onError(: NIMMSTADevice?, : Throwable): Boolean |
onInterrupt |
fun onInterrupt(): Unit |
onServiceConnected |
Gets called when the AccessibilityService is activated in the Settings and on Phone starts Connects to the NimmstaService Creates Notification Service fun onServiceConnected(): Unit |
onUnbind |
Gets called if the Accessibility service gets stopped for some reason Disabled or Phone Shutdown fun onUnbind(intent: Intent?): Boolean |
clipboardManager |
var clipboardManager: ClipboardManager? |
TAG |
const val TAG: String |
isEnabled |
fun isEnabled(context: Context): Boolean |