FedCmDomain

This domain allows interacting with the FedCM dialog.

Official doc

Functions

Link copied to clipboard
suspend fun clickDialogButton(dialogId: String, dialogButton: DialogButton): ClickDialogButtonResponse

(undocumented in the protocol definition)

Link copied to clipboard
Link copied to clipboard

Triggered when a dialog is closed, either by user action, JS abort, or a command below.

Link copied to clipboard
Link copied to clipboard

(undocumented in the protocol definition)

Link copied to clipboard
suspend fun disable(): DisableResponse

(undocumented in the protocol definition)

Link copied to clipboard
inline suspend fun dismissDialog(dialogId: String, optionalArgs: DismissDialogRequest.Builder.() -> Unit = {}): DismissDialogResponse

(undocumented in the protocol definition)

Link copied to clipboard
inline suspend fun enable(optionalArgs: EnableRequest.Builder.() -> Unit = {}): EnableResponse
suspend fun enable(input: EnableRequest): EnableResponse

(undocumented in the protocol definition)

Link copied to clipboard
fun events(): Flow<FedCmEvent>

Subscribes to all events related to this domain.

Link copied to clipboard
suspend fun openUrl(dialogId: String, accountIndex: Int, accountUrlType: AccountUrlType): OpenUrlResponse

(undocumented in the protocol definition)

Link copied to clipboard

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.

Link copied to clipboard
suspend fun selectAccount(dialogId: String, accountIndex: Int): SelectAccountResponse

(undocumented in the protocol definition)