PromptContentViewWithMoreOptionsButton


class PromptContentViewWithMoreOptionsButton : 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 functions

String?

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

Public functions

getDescription

Added in 1.4.0-alpha02
@RequiresPermission(value = "")
fun getDescription(): String?

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

Returns
String?

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