# CrossDevicePromptManager

*** ** * ** ***


```
interface CrossDevicePromptManager
```

<br />

*** ** * ** ***

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

## Summary

| ### Public functions |
|---|---|
| `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/kotlin/com/google/android/play/core/crossdeviceprompt/CrossDevicePromptManager#launchPromptFlow(android.app.Activity,com.google.android.play.core.crossdeviceprompt.CrossDevicePromptInfo)( activity: https://developer.android.com/reference/android/app/Activity.html, crossDevicePromptInfo: https://developer.android.com/reference/kotlin/com/google/android/play/core/crossdeviceprompt/CrossDevicePromptInfo )` Launches and displays the prompt flow to the user. |
| `https://developers.google.com/android/reference/com/google/android/gms/tasks/Task.html<https://developer.android.com/reference/kotlin/com/google/android/play/core/crossdeviceprompt/CrossDevicePromptInfo!>` | `https://developer.android.com/reference/kotlin/com/google/android/play/core/crossdeviceprompt/CrossDevicePromptManager#requestInstallationPromptFlow(com.google.android.play.core.crossdeviceprompt.model.CrossDevicePromptInstallationRequest)( crossDevicePromptInstallationRequest: https://developer.android.com/reference/kotlin/com/google/android/play/core/crossdeviceprompt/model/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: https://developer.android.com/reference/kotlin/com/google/android/play/core/crossdeviceprompt/model/CrossDevicePromptInstallationRequest!` | - contains information related to the installation prompt request. |

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