# Google.Play.Integrity.IntegrityDialogRequest

Represents a request to show a Play Integrity API dialog in Classic mode.

## Summary

| ### Constructors and Destructors ||
|---|---|
| `https://developer.android.com/reference/unity/class/Google/Play/Integrity/IntegrityDialogRequest#classGoogle_1_1Play_1_1Integrity_1_1IntegrityDialogRequest_1a1f2112486aab32c470fcf2b64ede08d4(https://developer.android.com/reference/unity/class/Google/Play/Integrity/IntegrityTokenResponse#classGoogle_1_1Play_1_1Integrity_1_1IntegrityTokenResponse tokenResponse, AndroidJavaObject activity, int dialogType)` Constructs an [IntegrityDialogRequest](https://developer.android.com/reference/unity/class/Google/Play/Integrity/IntegrityDialogRequest#classGoogle_1_1Play_1_1Integrity_1_1IntegrityDialogRequest) using a successful token response. ||
| `https://developer.android.com/reference/unity/class/Google/Play/Integrity/IntegrityDialogRequest#classGoogle_1_1Play_1_1Integrity_1_1IntegrityDialogRequest_1abffa3c711441bc5091ee706962ec807e(https://developer.android.com/reference/unity/class/Google/Play/Integrity/IntegrityServiceError#classGoogle_1_1Play_1_1Integrity_1_1IntegrityServiceError integrityError, AndroidJavaObject activity, int dialogType)` Constructs an [IntegrityDialogRequest](https://developer.android.com/reference/unity/class/Google/Play/Integrity/IntegrityDialogRequest#classGoogle_1_1Play_1_1Integrity_1_1IntegrityDialogRequest) using a service error. ||

| ### Properties ||
|---|---|
| `https://developer.android.com/reference/unity/class/Google/Play/Integrity/IntegrityDialogRequest#classGoogle_1_1Play_1_1Integrity_1_1IntegrityDialogRequest_1a9e57aed7a7cca3e75a0a0a69fe82fef4` | `AndroidJavaObject` The Android Activity context used to display the dialog. |
| `https://developer.android.com/reference/unity/class/Google/Play/Integrity/IntegrityDialogRequest#classGoogle_1_1Play_1_1Integrity_1_1IntegrityDialogRequest_1a6c5b2027cce88bba2e21e647f81ae971` | `int` Determines which Integrity Dialog type should be shown. |
| `https://developer.android.com/reference/unity/class/Google/Play/Integrity/IntegrityDialogRequest#classGoogle_1_1Play_1_1Integrity_1_1IntegrityDialogRequest_1ae8796fa9a99a985a251369a498cc7c43` | `https://developer.android.com/reference/unity/class/Google/Play/Integrity/IntegrityServiceError#classGoogle_1_1Play_1_1Integrity_1_1IntegrityServiceError` The Integrity error that the dialog is meant to help the user resolve. |
| `https://developer.android.com/reference/unity/class/Google/Play/Integrity/IntegrityDialogRequest#classGoogle_1_1Play_1_1Integrity_1_1IntegrityDialogRequest_1a006064be36105f62d960fbc8fc2499e8` | `https://developer.android.com/reference/unity/class/Google/Play/Integrity/IntegrityTokenResponse#classGoogle_1_1Play_1_1Integrity_1_1IntegrityTokenResponse` The Integrity token response that necessitates showing the dialog. |

## Properties

### Activity

```c#
AndroidJavaObject Activity
```
The Android Activity context used to display the dialog.

### DialogType

```c#
int DialogType
```
Determines which Integrity Dialog type should be shown.

See <https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/IntegrityDialogTypeCode> for the supported types.

### IntegrityError

```c#
IntegrityServiceError IntegrityError
```
The Integrity error that the dialog is meant to help the user resolve.

Will be null if the request was built with a token response.

### TokenResponse

```c#
IntegrityTokenResponse TokenResponse
```
The Integrity token response that necessitates showing the dialog.

Will be null if the request was built with an error.

## Public functions

### IntegrityDialogRequest

```c#
 IntegrityDialogRequest(
  IntegrityTokenResponse tokenResponse,
  AndroidJavaObject activity,
  int dialogType
)
```
Constructs an [IntegrityDialogRequest](https://developer.android.com/reference/unity/class/Google/Play/Integrity/IntegrityDialogRequest#classGoogle_1_1Play_1_1Integrity_1_1IntegrityDialogRequest) using a successful token response.

<br />

Details Parameters `tokenResponse` The successful response from the Integrity API. `activity` The Android Activity context used to display the dialog. `dialogType` The type code of the dialog to show. See <https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/IntegrityDialogTypeCode> for the supported types.

### IntegrityDialogRequest

```c#
 IntegrityDialogRequest(
  IntegrityServiceError integrityError,
  AndroidJavaObject activity,
  int dialogType
)
```
Constructs an [IntegrityDialogRequest](https://developer.android.com/reference/unity/class/Google/Play/Integrity/IntegrityDialogRequest#classGoogle_1_1Play_1_1Integrity_1_1IntegrityDialogRequest) using a service error.

<br />

Details Parameters `integrityError` The error that the dialog is meant to help the user resolve. `activity` The Android Activity context used to display the dialog. `dialogType` The type code of the dialog to show. See <https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/IntegrityDialogTypeCode> for the supported types.