# Google.Play.Integrity.IntegrityTokenResponse

Response for [IntegrityManager.RequestIntegrityToken](https://developer.android.com/reference/unity/class/Google/Play/Integrity/IntegrityManager#classGoogle_1_1Play_1_1Integrity_1_1IntegrityManager_1a1dcfd0e7f77001135c708d6420d0b98e).

## Summary

| ### Properties ||
|---|---|
| `https://developer.android.com/reference/unity/class/Google/Play/Integrity/IntegrityTokenResponse#classGoogle_1_1Play_1_1Integrity_1_1IntegrityTokenResponse_1ad74cf6abb09cf9cf7366acbd6d8521bd` | `string` A token which contains the Base64 encoded response for the integrity related enquiries. |

| ### Public functions ||
|---|---|
| `https://developer.android.com/reference/unity/class/Google/Play/Integrity/IntegrityTokenResponse#classGoogle_1_1Play_1_1Integrity_1_1IntegrityTokenResponse_1aaa335f17569fee07d43da84509ac742e(int typeCode)` | `PlayAsyncOperation< https://developer.android.com/reference/unity/namespace/Google/Play/Integrity#namespaceGoogle_1_1Play_1_1Integrity_1a664149de1380fe4ef98779a01ef9e3d2, https://developer.android.com/reference/unity/namespace/Google/Play/Integrity#namespaceGoogle_1_1Play_1_1Integrity_1a7df9f11cac69ea066240452ce7300b63 >` Displays a dialog to the user. |

## Properties

### Token

```c#
string Token
```
A token which contains the Base64 encoded response for the integrity related enquiries.

The response consists of a JSON payload that is signed and encrypted as a nested JSON Web Token (JWT).

## Public functions

### ShowDialog

```c#
PlayAsyncOperation< IntegrityDialogResponseCode, IntegrityErrorCode > ShowDialog(
  int typeCode
)
```
Displays a dialog to the user.

This method can only be called once per Integrity API response.

DEPRECATED: Please use [IntegrityManagerV2.ShowDialog(IntegrityDialogRequest)](https://developer.android.com/reference/unity/class/Google/Play/Integrity/IntegrityManagerV2#classGoogle_1_1Play_1_1Integrity_1_1IntegrityManagerV2_1a2d0c7029563756b8b49cbb8d553f64c4) instead.

<br />

Details Parameters `typeCode` 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. **Returns** A PlayAsyncOperation{TResult,TError} that returns [IntegrityDialogResponseCode](https://developer.android.com/reference/unity/namespace/Google/Play/Integrity#namespaceGoogle_1_1Play_1_1Integrity_1a664149de1380fe4ef98779a01ef9e3d2) on successful callback or [IntegrityErrorCode](https://developer.android.com/reference/unity/namespace/Google/Play/Integrity#namespaceGoogle_1_1Play_1_1Integrity_1a7df9f11cac69ea066240452ce7300b63) on failure callback.