class DeviceConnectActivity : PermissionActivity, NIMMSTAEventHandler
The DeviceConnectActivity is the basic activity for a NIMMSTA Scanner to Connect to the Android App. It is basically using the NIMMSTAConnectionManager.connectAsync method to connect by ConnectionCode.
It implements the following checks:
Author
NIMMSTA Team
Copyright
NIMMSTA GmbH & IBPG 2020
License
NIMMSTA GmbH
<init> | 
 The DeviceConnectActivity is the basic activity for a NIMMSTA Scanner to Connect to the Android App. It is basically using the NIMMSTAConnectionManager.connectAsync method to connect by ConnectionCode. DeviceConnectActivity() | 
didConnectAndInit | 
fun didConnectAndInit(: NIMMSTADevice): Unit | 
didStartConnecting | 
fun didStartConnecting(: NIMMSTADevice): Unit | 
onActivityResult | 
fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?): Unit | 
onClickEnableBLE | 
fun onClickEnableBLE(view: View): Unit | 
onCreate | 
fun onCreate(savedInstanceState: Bundle?): Unit | 
onCreateOptionsMenu | 
fun onCreateOptionsMenu(: Menu?): Boolean | 
onDestroy | 
fun onDestroy(): Unit | 
onOptionsItemSelected | 
fun onOptionsItemSelected(item: MenuItem): Boolean | 
onPause | 
fun onPause(): Unit | 
onResume | 
fun onResume(): Unit | 
onSaveInstanceState | 
fun onSaveInstanceState(outState: Bundle): Unit | 
openLocationSettings | 
 Opens Location settings if location services are disabled. fun openLocationSettings(v: View): Unit | 
openPermissionSettings | 
 Retries checking permissions, if got we show connect screen otherwise we go to settings to provide the user an easy way to change the permisisons. fun openPermissionSettings(v: View): Unit | 
ACTIVITY_DEVICE_LIST_RESULT | 
const val ACTIVITY_DEVICE_LIST_RESULT: Int | 
BUNDLE_CONNECT_CODE | 
const val BUNDLE_CONNECT_CODE: String | 
BUNDLE_DEVICE_ADDRESS | 
const val BUNDLE_DEVICE_ADDRESS: String | 
BUNDLE_NUMBER_RETRIES | 
const val BUNDLE_NUMBER_RETRIES: String | 
EXTRA_DEVICE_ADDRESS | 
const val EXTRA_DEVICE_ADDRESS: String | 
FINISH_ON_NEW_CONNECTION_EXTRA | 
const val FINISH_ON_NEW_CONNECTION_EXTRA: String | 
maximumQrCodeSizeDp | 
 This is the maximum size of the QR-Code in 1/72 of an inch. var maximumQrCodeSizeDp: Int | 
REQUEST_ENABLE_BT | 
const val REQUEST_ENABLE_BT: Int | 
SCAN_REFRESH_INTERVAL | 
val SCAN_REFRESH_INTERVAL: TimeSpan |