Skip to content

Instantly share code, notes, and snippets.

@rallat
Created October 23, 2014 07:41
Show Gist options
  • Save rallat/849a68520ca10d913aeb to your computer and use it in GitHub Desktop.
Save rallat/849a68520ca10d913aeb to your computer and use it in GitHub Desktop.
Digits with custom button
final AuthCallback authCallback = new AuthCallback() {
@Override
public void success(DigitsSession digitsSession, String s) {
//Success !!
}
@Override
public void failure(DigitsException e) {
//sad :(
}
};
button.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Digits.authenticate(authCallback);
}
});
@Idimma
Copy link

Idimma commented Mar 24, 2017

It does not work

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