hwsecurity / de.cotech.hw / SecurityKeyManagerConfig / Builder / addExcludedActivityClass /
addExcludedActivityClass
open fun
addExcludedActivityClass(clazz:
Class
Add an Activity to the list of excluded Activities.
This adds a specific Activity to an exclusion list, making it exempt from the lifecyclemanagement by SecurityKeyManager. This effectively disables all features of the hwsecuritySDK while this Activity is in the foreground. This is useful for Activities that managetheir own NFC or USB connections, for example by enabling NFC reader mode via enableReaderMode, or yielding processing to a android.nfc.cardemulation.HostApduService.
A call to the registerCallback method for an Activity that hasbeen excluded in this way will result in an IllegalArgumentException.
new SecurityKeyManagerConfig.Builder()
.addExcludedActivityClass(MyCustomNfcActivity.class)