CrossDevicePromptManager


public interface CrossDevicePromptManager


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

Summary

Public methods

abstract @NonNull Task<Void>
@CanIgnoreReturnValue
launchPromptFlow(
    @NonNull Activity activity,
    @NonNull CrossDevicePromptInfo crossDevicePromptInfo
)

Launches and displays the prompt flow to the user.

abstract @NonNull Task<CrossDevicePromptInfo>
requestInstallationPromptFlow(
    CrossDevicePromptInstallationRequest crossDevicePromptInstallationRequest
)

Retrieves the necessary data to launch the installation prompt flow.

Public methods

launchPromptFlow

@CanIgnoreReturnValue
abstract @NonNull Task<VoidlaunchPromptFlow(
    @NonNull Activity activity,
    @NonNull CrossDevicePromptInfo crossDevicePromptInfo
)

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

abstract @NonNull Task<CrossDevicePromptInforequestInstallationPromptFlow(
    CrossDevicePromptInstallationRequest crossDevicePromptInstallationRequest
)

Retrieves the necessary data to launch the installation prompt flow.

Parameters
CrossDevicePromptInstallationRequest crossDevicePromptInstallationRequest

- contains information related to the installation prompt request.

Returns
@NonNull Task<CrossDevicePromptInfo>

CrossDevicePromptInfo - used to launch the prompt flow.