PromptContentViewWithMoreOptionsButton
public final class PromptContentViewWithMoreOptionsButton implements PromptContentView
Contains the information of the template of content view with a more options button for Biometric Prompt.
This button should be used to provide more options for sign in or other purposes, such as when a user needs to select between multiple app-specific accounts or profiles that are available for sign in.
Apps should avoid using this when possible because it will create additional steps that the user must navigate through - clicking the more options button will dismiss the prompt, provide the app an opportunity to ask the user for the correct option, and finally allow the app to decide how to proceed once selected.
Here's how you'd set a PromptContentViewWithMoreOptionsButton on a Biometric Prompt:
BiometricPrompt.PromptInfo promptInfo = new BiometricPrompt.PromptInfo.Builder()
.setTitle(...)
.setSubTitle(...)
.setContentView(
new PromptContentViewWithMoreOptionsButton.Builder()
.setDescription("test description")
.build()
)
.build();Summary
Nested types |
|---|
public final class PromptContentViewWithMoreOptionsButton.BuilderA builder used to set individual options for the |
Public methods |
|
|---|---|
@Nullable String |
@RequiresPermission(value = "android.permission.SET_BIOMETRIC_DIALOG_ADVANCED")Gets the description for the content view, as set by |
Public methods
getDescription
@RequiresPermission(value = "android.permission.SET_BIOMETRIC_DIALOG_ADVANCED")
public @Nullable String getDescription()
Gets the description for the content view, as set by setDescription.