keyboardContainer = findViewById(R.id.keyboard_container);
inputCodeView = findViewById(R.id.input_code_view);
inputCodeView.setAnimated(true);
inputCodeView.setKeyboardContainer(keyboardContainer);
inputCodeView.setAutoClearOnError(false);
keyboardContainer.displayKeyboard();
inputCodeView.setSmsInputCodeListener(new OnSmsInputCodeListener() {
@Override public void onInputCompleted(@NonNull String code) {
keyboardContainer.setIsEnabled(true);
if (!"300000".equals(code)) {
inputCodeView.showErrorView();
}
}
@Override public void onCleared() {
keyboardContainer.setIsEnabled(true);
}
@Override public void onError(String code) {
}
});
-
Notifications
You must be signed in to change notification settings - Fork 0
DjamshidDjurayev/TestSmsView
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description or website provided.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published