MediationType enum
Defines how user mediation (interaction) should be handled during credential operations.
Values
- Conditional → const MediationType
-
Credentials are presented in a non-modal dialog. User can dismiss by clicking outside. Used for scenarios where immediate user interaction is preferred but not required. Only available if the credential interfaces support conditional mediation.
- Optional → const MediationType
-
Allows automatic credential handover if possible, but will prompt for user mediation if required. This is the default behavior for credential retrieval.
- Required → const MediationType
-
Always requires user mediation for credential operations, even if silent access would be possible. Useful for reauthentication or user-switching scenarios.
- Silent → const MediationType
-
Suppresses user mediation. Operations will return null if user interaction would be needed. Useful for "Keep me signed in" features where automatic sign-in should be attempted without bothering the user.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
-
values
→ const List<
MediationType> - A constant List of the values in this enum, in order of their declaration.