Created
June 20, 2020 04:08
-
-
Save TobiAlbert/399ba0989705d963ba45e72a3b3fdd05 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val hintRequest = HintRequest.Builder() | |
.setPhoneNumberIdentifierSupported(true) | |
.build() | |
val credentialsClient = Credentials.getClient(this) | |
val intent = credentialsClient.getHintPickerIntent(hintRequest) | |
try { | |
startIntentSenderForResult( | |
intent.intentSender, | |
CREDENTIAL_PICKER_REQUEST, | |
null, 0, 0, 0 | |
) | |
} catch (e: IntentSender.SendIntentException) { | |
Log.e("MainActivity", "Could not start intent: $e") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment