# CrossDevicePromptManager

*** ** * ** ***


```
public interface CrossDevicePromptManager
```

<br />

*** ** * ** ***

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

## Summary

| ### Public methods |
|---|---|
| `abstract @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<https://developer.android.com/reference/java/lang/Void.html>` | `@https://errorprone.info/api/latest/com/google/errorprone/annotations/CanIgnoreReturnValue.html https://developer.android.com/reference/com/google/android/play/core/crossdeviceprompt/CrossDevicePromptManager#launchPromptFlow(android.app.Activity,com.google.android.play.core.crossdeviceprompt.CrossDevicePromptInfo)( @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/android/app/Activity.html activity, @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developer.android.com/reference/com/google/android/play/core/crossdeviceprompt/CrossDevicePromptInfo crossDevicePromptInfo )` Launches and displays the prompt flow to the user. |
| `abstract @https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<https://developer.android.com/reference/com/google/android/play/core/crossdeviceprompt/CrossDevicePromptInfo>` | `https://developer.android.com/reference/com/google/android/play/core/crossdeviceprompt/CrossDevicePromptManager#requestInstallationPromptFlow(com.google.android.play.core.crossdeviceprompt.model.CrossDevicePromptInstallationRequest)( https://developer.android.com/reference/com/google/android/play/core/crossdeviceprompt/model/CrossDevicePromptInstallationRequest crossDevicePromptInstallationRequest )` Retrieves the necessary data to launch the installation prompt flow. |

## Public methods

### launchPromptFlow

```
@CanIgnoreReturnValue
abstract @NonNull Task<Void> launchPromptFlow(
    @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<CrossDevicePromptInfo> requestInstallationPromptFlow(
    CrossDevicePromptInstallationRequest crossDevicePromptInstallationRequest
)
```

Retrieves the necessary data to launch the installation prompt flow.

| Parameters |
|---|---|
| `https://developer.android.com/reference/com/google/android/play/core/crossdeviceprompt/model/CrossDevicePromptInstallationRequest crossDevicePromptInstallationRequest` | - contains information related to the installation prompt request. |

| Returns |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull.html https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<https://developer.android.com/reference/com/google/android/play/core/crossdeviceprompt/CrossDevicePromptInfo>` | CrossDevicePromptInfo - used to launch the prompt flow. |