icerockdev / moko-biometry

Biometry authentication with Touch ID, Face ID from common code with Kotlin Multiplatform Mobile
https://moko.icerock.dev
Apache License 2.0
52 stars 6 forks source link

When should be used setPackageManager? #7

Closed Alex009 closed 1 year ago

Alex009 commented 3 years ago

https://github.com/icerockdev/moko-biometry/blob/master/biometry/src/androidMain/kotlin/dev/icerock/moko/biometry/BiometryAuthenticator.kt#L42

ZiXOps commented 3 years ago

when you need to check is TouchId enabled on android via isTouchIdEnabled(): Boolean it's need to be set in activity or fragments onCreate

Alex009 commented 3 years ago

@ZiXOps why this not implemented inside bind method?

https://github.com/icerockdev/moko-biometry/blob/master/biometry/src/androidMain/kotlin/dev/icerock/moko/biometry/BiometryAuthenticator.kt#L28