FedCmApi class
This domain allows interacting with the FedCM dialog.
Constructors
- FedCmApi(Client _client)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onDialogClosed
→ Stream<
String> -
Triggered when a dialog is closed, either by user action, JS abort,
or a command below.
no setter
-
onDialogShown
→ Stream<
DialogShownEvent> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clickDialogButton(
String dialogId, DialogButton dialogButton) → Future< void> -
disable(
) → Future< void> -
dismissDialog(
String dialogId, {bool? triggerCooldown}) → Future< void> -
enable(
{bool? disableRejectionDelay}) → Future< void> -
disableRejectionDelay
Allows callers to disable the promise rejection delay that would normally happen, if this is unimportant to what's being tested. (step 4 of https://fedidcg.github.io/FedCM/#browser-api-rp-sign-in) -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openUrl(
String dialogId, int accountIndex, AccountUrlType accountUrlType) → Future< void> -
resetCooldown(
) → Future< void> - Resets the cooldown time, if any, to allow the next FedCM call to show a dialog even if one was recently dismissed by the user.
-
selectAccount(
String dialogId, int accountIndex) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited