Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Set Pin #4

Open
rvp101293 opened this issue Sep 15, 2017 · 2 comments
Open

How to Set Pin #4

rvp101293 opened this issue Sep 15, 2017 · 2 comments
Assignees
Milestone

Comments

@rvp101293
Copy link

how to use for first time set pin and then confirm pin.

@kevalpatel2106 kevalpatel2106 self-assigned this Jan 25, 2018
@kevalpatel2106 kevalpatel2106 added this to the 2.0 milestone Feb 5, 2018
@SaiLoRcast
Copy link

how to use for first time set pin and then confirm pin?

@achunk17
Copy link

private ArrayList<Integer> pinValues;
// TODO ...............
mPinView.setPinLength(6);

mPinView.setAuthenticationListener(new AuthenticationListener() {
@override
public void onAuthenticationSuccessful() {
StringBuilder pin = new StringBuilder();
for (int i = 0; i < pinValues.size(); i++) {
pin.append(pinValues.get(i));
}
Log.d("PIN", pin.toString());
}
@Override
public void onAuthenticationFailed() {}
});
mPinView.setPinAuthenticator(new PinAuthenticator() {
@override
public PinAuthenticationState isValidPin(@nonnull ArrayList<Integer> pinDigits) {
pinValues = pinDigits;
return PinAuthenticationState.SUCCESS;
}
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants