Expose access to the pin (or at least its current length) from the PinLockView object
I'm aware of that I can access the pin via listeners like onComplete, onProgress and so on.. However, some scenarios require accessing the pin or its length on demand.
Use case: UI shows PinLockView and "next" button.
User clicks the next button. It is obvious now that I shouldn't let the user go through to the next activity because the pin is not completed yet.
The current way to deal with this scenario is to set a boolean state flag that indicates if the user can go to the next activity, it will be set to True when the onComplete is called. However, I'll then have to reset this boolean flag once the user has clicked the "next" button
Better way: Each time user clicks the next button, I'll be able check the PinLockView and check if the current pin length is as defined, if yes, the user is eligible to move next. That way, there will be no need to keep a statefull boolean which might be buggy solution as well..