Hi, For displaying the toast (or other single events) you can add ViewStateEvent class to the project and use it in ViewState. In order to display the toast inside render method you just need to pass a proper function to consume method of the viewStateEvent — it will be invoked only once and you do not need to emit new view state
Hi, thanks for the grate article. I started using MVI architecture few months ago — I was inspired by Benoit’s Quenaudon talk on Droidcon. I find this architecture more effective than MVP for both small and complex projects.
I have few notes about the drawbacks you have discribed:
1. A lot of boilerplate — yes even for a one…
No, BiometricPrompt is available only from API 28. But in this app I’ve also presented other feature — for example PrecomputedText which has it’s “compat” version available on lower API’s. I’m also preparing an article about it so stay tuned.
Unfortunately, I do not think it is possible. According to the AnimatedImageDrawable.class source the acctual drawing is performed by the native function. You can only register AnimationCallback using
But than you will only get access to
Hi, I’m glad you like it.
Biometric prompt should support Face and Iris authentication — it is mentioned here and here. However looks like it is not yet ready in the Android API 28 release. For example —
FEATURE_IRIS parameters are mentioned here but they are not yet presented in PackageManager class.