class AccessibilityStatusActivity : AppCompatActivity, NIMMSTAEventHandler
This activity shows the status of the Accessibility Service and the Connection Status with the scanner
<init> |
This activity shows the status of the Accessibility Service and the Connection Status with the scanner AccessibilityStatusActivity() |
didConnectAndInit |
Called once the connection has been established successfully. The API is now ready to receive any requests and the HS 50 will act upon it. fun didConnectAndInit(: NIMMSTADevice): Unit |
didDisconnect |
Gets called if a scanner is disconnected or connection failed. fun didDisconnect(: NIMMSTADevice, : Reason): Unit |
didStartConnecting |
Called once a HS 50 was found and the connection setup started. Within this time frame not all APIs are ready, yet. After finishing this, didConnectAndInit is called. If this fails, didDisconnect will be called with reason DEVICE_FAILED_CONNECT. fun didStartConnecting(: NIMMSTADevice): Unit |
onCreate |
Creates the Activity Binds Views and Nimmsta Service fun onCreate(savedInstanceState: Bundle?): Unit |
onCreateOptionsMenu |
Inflates the menu fun onCreateOptionsMenu(: Menu?): Boolean |
onDestroy |
Destroys activity and unbinds Nimmsta-Service fun onDestroy(): Unit |
onError |
Gets called if the scanner returns an error fun onError(: NIMMSTADevice?, : Throwable): Boolean |
onOptionsItemSelected |
Sets actions for menu options fun onOptionsItemSelected(item: MenuItem): Boolean |
onPause |
fun onPause(): Unit |
onPrepareOptionsMenu |
Makes different menu actions visible based on connection status fun onPrepareOptionsMenu(: Menu): Boolean |
onResume |
OnResume the status cards get an update fun onResume(): Unit |
onSaveInstanceState |
fun onSaveInstanceState(outState: Bundle): Unit |
startActivity |
Override to make sure all started activities lead to didShowOtherActivity = true fun startActivity(intent: Intent?): Unit |
EXTRA_DID_SHOW_OTHER_ACTIVITY |
const val EXTRA_DID_SHOW_OTHER_ACTIVITY: String |
TAG |
const val TAG: String |