# Google.Play.Integrity.StandardIntegrityManagerV2

Manages requests for integrity information and dialogs.

## Summary

| ### Constructors and Destructors ||
|---|---|
| `https://developer.android.com/reference/unity/class/Google/Play/Integrity/StandardIntegrityManagerV2#classGoogle_1_1Play_1_1Integrity_1_1StandardIntegrityManagerV2_1a92684210e0d7aaba71956739d18e7f7c()` Constructor. ||

| ### Public functions ||
|---|---|
| `https://developer.android.com/reference/unity/class/Google/Play/Integrity/StandardIntegrityManagerV2#classGoogle_1_1Play_1_1Integrity_1_1StandardIntegrityManagerV2_1a942f117fe63edc731bd50cf5fb7d7ce2(https://developer.android.com/reference/unity/class/Google/Play/Integrity/PrepareIntegrityTokenRequest#classGoogle_1_1Play_1_1Integrity_1_1PrepareIntegrityTokenRequest request)` | `PlayAsyncOperation< https://developer.android.com/reference/unity/class/Google/Play/Integrity/StandardIntegrityManagerV2/StandardIntegrityTokenProvider#classGoogle_1_1Play_1_1Integrity_1_1StandardIntegrityManagerV2_1_1StandardIntegrityTokenProvider, https://developer.android.com/reference/unity/class/Google/Play/Integrity/StandardIntegrityError#classGoogle_1_1Play_1_1Integrity_1_1StandardIntegrityError >` Prepares the integrity token and makes it available for requesting via [StandardIntegrityTokenProvider](https://developer.android.com/reference/unity/class/Google/Play/Integrity/StandardIntegrityManagerV2/StandardIntegrityTokenProvider#classGoogle_1_1Play_1_1Integrity_1_1StandardIntegrityManagerV2_1_1StandardIntegrityTokenProvider). |
| `https://developer.android.com/reference/unity/class/Google/Play/Integrity/StandardIntegrityManagerV2#classGoogle_1_1Play_1_1Integrity_1_1StandardIntegrityManagerV2_1a003e3336ee1e8e96665ad76b52dbf318(https://developer.android.com/reference/unity/class/Google/Play/Integrity/StandardIntegrityDialogRequest#classGoogle_1_1Play_1_1Integrity_1_1StandardIntegrityDialogRequest request)` | `PlayAsyncOperation< https://developer.android.com/reference/unity/namespace/Google/Play/Integrity#namespaceGoogle_1_1Play_1_1Integrity_1a664149de1380fe4ef98779a01ef9e3d2, https://developer.android.com/reference/unity/class/Google/Play/Integrity/StandardIntegrityError#classGoogle_1_1Play_1_1Integrity_1_1StandardIntegrityError >` Displays a dialog to the user. |

| ### Classes ||
|---|---|
| [Google.Play.Integrity.StandardIntegrityManagerV2.StandardIntegrityTokenProvider](https://developer.android.com/reference/unity/class/Google/Play/Integrity/StandardIntegrityManagerV2/StandardIntegrityTokenProvider) | Standard integrity token provider. |

## Public functions

### PrepareIntegrityToken

```c#
PlayAsyncOperation< StandardIntegrityManagerV2.StandardIntegrityTokenProvider, StandardIntegrityError > PrepareIntegrityToken(
  PrepareIntegrityTokenRequest request
)
```
Prepares the integrity token and makes it available for requesting via [StandardIntegrityTokenProvider](https://developer.android.com/reference/unity/class/Google/Play/Integrity/StandardIntegrityManagerV2/StandardIntegrityTokenProvider#classGoogle_1_1Play_1_1Integrity_1_1StandardIntegrityManagerV2_1_1StandardIntegrityTokenProvider).

You can call this method from time to time in order to refresh the resulting [StandardIntegrityTokenProvider](https://developer.android.com/reference/unity/class/Google/Play/Integrity/StandardIntegrityManagerV2/StandardIntegrityTokenProvider#classGoogle_1_1Play_1_1Integrity_1_1StandardIntegrityManagerV2_1_1StandardIntegrityTokenProvider).

The API makes a call to Google's servers and hence requires a network connection.
Details Parameters `request` the object to prepare the integrity token with. **Returns** A PlayAsyncOperation{StandardIntegrityManagerV2.StandardIntegrityTokenProvider, StandardIntegrityError} that returns [StandardIntegrityTokenProvider](https://developer.android.com/reference/unity/class/Google/Play/Integrity/StandardIntegrityManagerV2/StandardIntegrityTokenProvider#classGoogle_1_1Play_1_1Integrity_1_1StandardIntegrityManagerV2_1_1StandardIntegrityTokenProvider) on successful callback or [StandardIntegrityError](https://developer.android.com/reference/unity/class/Google/Play/Integrity/StandardIntegrityError#classGoogle_1_1Play_1_1Integrity_1_1StandardIntegrityError) on failure callback.

### ShowDialog

```c#
PlayAsyncOperation< IntegrityDialogResponseCode, StandardIntegrityError > ShowDialog(
  StandardIntegrityDialogRequest request
)
```
Displays a dialog to the user.

This method can only be called once per Integrity API response (Token or Error).

<br />

Details Parameters `request` Contains all the information required to show the dialog. **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 [StandardIntegrityError](https://developer.android.com/reference/unity/class/Google/Play/Integrity/StandardIntegrityError#classGoogle_1_1Play_1_1Integrity_1_1StandardIntegrityError) on failure callback.

### StandardIntegrityManagerV2

```c#
 StandardIntegrityManagerV2()
```
Constructor.