AndroidPromptInfo class

Texts and behavior of the Android system authentication prompt.

Android renders one prompt per protected operation; these values fill the system-provided sheet. See PromptInfo for how the per-platform configurations are combined.

Constructors

AndroidPromptInfo({String title = 'Authenticate to unlock data', String? subtitle, String? description, String negativeButton = 'Cancel', bool confirmationRequired = true})
Creates the Android prompt configuration.
const

Properties

confirmationRequired bool
Whether passive biometrics (like face unlock) require an explicit confirmation tap after recognition.
final
description String?
Optional longer text explaining why authentication is needed.
final
hashCode int
The hash code for this object.
no setterinherited
negativeButton String
The label of the cancel button.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtitle String?
An optional second line below title.
final
title String
The headline of the prompt sheet.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

defaultValues → const AndroidPromptInfo
The configuration used when none is provided explicitly.