Added NonVisualOrImageBasedOrFlickerCode for applications supporting FlickerCode

This commit is contained in:
dankito 2024-10-16 15:10:53 +02:00
parent 0e26a19d13
commit 7448b7e94c
1 changed files with 9 additions and 0 deletions

View File

@ -45,6 +45,15 @@ enum class TanMethodType {
addAll(listOf(TanMethodType.ChipTanManual)) // this is quite inconvenient for user, so i added it as last
}
/**
* The same as [NonVisualOrImageBased] but including [ChipTanFlickerCode] - for applications supporting it - as
* FlickerCode is still the most used ChipTan procedure.
*/
val NonVisualOrImageBasedOrFlickerCode = NonVisualOrImageBased.toMutableList().apply {
val index = this.indexOf(ChipTanQrCode)
this.add(index, ChipTanFlickerCode)
}.toList()
val TanMethodsNotSupportedByMostApplications = listOf(TanMethodType.ChipTanUsb)
}