Skip to content

Instantly share code, notes, and snippets.

@TobiAlbert
Created June 20, 2020 04:08
Show Gist options
  • Save TobiAlbert/399ba0989705d963ba45e72a3b3fdd05 to your computer and use it in GitHub Desktop.
Save TobiAlbert/399ba0989705d963ba45e72a3b3fdd05 to your computer and use it in GitHub Desktop.
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