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")
            .setMoreOptionsButtonListener(executor, listener)
            .build()
     )
    .build();

Summary

Nested types

A builder used to set individual options for the PromptContentViewWithMoreOptionsButton class.

Public methods

@Nullable String

Gets the description for the content view, as set by setDescription.

Public methods

getDescription

Added in 1.4.0-alpha01
@RequiresPermission(value = "")
public @Nullable String getDescription()

Gets the description for the content view, as set by setDescription.

Returns
@Nullable String

The description for the content view, or null if the content view has no description.