CrossDevicePromptManager


interface CrossDevicePromptManager


Manages operations for requesting and launching the cross device prompt flow.

Summary

Public functions

Task<Void!>
@CanIgnoreReturnValue
launchPromptFlow(
    activity: Activity,
    crossDevicePromptInfo: CrossDevicePromptInfo
)

Launches and displays the prompt flow to the user.

Task<CrossDevicePromptInfo!>
requestInstallationPromptFlow(
    crossDevicePromptInstallationRequest: CrossDevicePromptInstallationRequest!
)

Retrieves the necessary data to launch the installation prompt flow.

Public functions

launchPromptFlow

@CanIgnoreReturnValue
fun launchPromptFlow(
    activity: Activity,
    crossDevicePromptInfo: CrossDevicePromptInfo
): Task<Void!>

Launches and displays the prompt flow to the user.

Note: In some circumstances the cross device prompt flow will not be shown to the user, so do not assume that calling this method will always display the prompt UI.

App should resume when the returned task is completed.

requestInstallationPromptFlow

fun requestInstallationPromptFlow(
    crossDevicePromptInstallationRequest: CrossDevicePromptInstallationRequest!
): Task<CrossDevicePromptInfo!>

Retrieves the necessary data to launch the installation prompt flow.

Parameters
crossDevicePromptInstallationRequest: CrossDevicePromptInstallationRequest!

- contains information related to the installation prompt request.

Returns
Task<CrossDevicePromptInfo!>

CrossDevicePromptInfo - used to launch the prompt flow.