hwsecurity / de.cotech.hw / SecurityKey / checkConnectionOrThrow /
checkConnectionOrThrow
open fun checkConnectionOrThrow()
This method checks if communication with the security key is still available by sending a no-op ping command.
This is useful especially for security keys connected via NFC, since the connection status as tracked by theoperating system sometimes has a delay of up to two seconds.
This method directly performs IO with the security token, and should therefore not be called on the UI thread.