# IntegrityDialogRequest


```
public abstract class IntegrityDialogRequest
```

<br />

*** ** * ** ***

Request for [IntegrityManager#showDialog(IntegrityDialogRequest)](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityManager#showDialog(com.google.android.play.core.integrity.IntegrityDialogRequest)).

Since 1.5.0

## Summary

| ### Nested types |
|---|
| `public abstract class `[IntegrityDialogRequest.Builder](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityDialogRequest.Builder) Builder for [IntegrityDialogRequest](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityDialogRequest). |
| `public abstract class `[IntegrityDialogRequest.IntegrityResponse](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityDialogRequest.IntegrityResponse) Encapsulates the result of an integrity check so it can be used to build an [IntegrityDialogRequest](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityDialogRequest). |
| `public final class `[IntegrityDialogRequest.IntegrityResponse.ExceptionDetails](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityDialogRequest.IntegrityResponse.ExceptionDetails)` extends `[IntegrityDialogRequest.IntegrityResponse](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityDialogRequest.IntegrityResponse) Represents a failed integrity check, containing the [IntegrityServiceException](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityServiceException). |
| `public final class `[IntegrityDialogRequest.IntegrityResponse.TokenResponse](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityDialogRequest.IntegrityResponse.TokenResponse)` extends `[IntegrityDialogRequest.IntegrityResponse](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityDialogRequest.IntegrityResponse) Represents a successful integrity check, containing the [IntegrityTokenResponse](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityTokenResponse). |

| ### Public constructors |
|---|
| [IntegrityDialogRequest](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityDialogRequest#IntegrityDialogRequest())`()` |

| ### Public methods |
|---|---|
| `abstract `[Activity](https://developer.android.com/reference/android/app/Activity.html) | [activity](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityDialogRequest#activity())`()` The activity to be used to show the dialog. |
| `static `[IntegrityDialogRequest.Builder](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityDialogRequest.Builder) | [builder](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityDialogRequest#builder())`()` Creates [IntegrityDialogRequest.Builder](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityDialogRequest.Builder). |
| `abstract `[IntegrityDialogRequest.IntegrityResponse](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityDialogRequest.IntegrityResponse) | [integrityResponse](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityDialogRequest#integrityResponse())`()` The previous integrity check outcome for the dialog request. |
| `abstract int` | [typeCode](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityDialogRequest#typeCode())`()` The type of the integrity dialog to be shown. |

## Public constructors

### IntegrityDialogRequest

```
public IntegrityDialogRequest()
```  

## Public methods

### activity

```
public abstract Activity activity()
```

The activity to be used to show the dialog.

See the details [Builder#setActivity(Activity)](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityDialogRequest.Builder#setActivity(android.app.Activity)).  

### builder

```
public static IntegrityDialogRequest.Builder builder()
```

Creates [IntegrityDialogRequest.Builder](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityDialogRequest.Builder).  

### integrityResponse

```
public abstract IntegrityDialogRequest.IntegrityResponse integrityResponse()
```

The previous integrity check outcome for the dialog request.

See the details [Builder#setIntegrityResponse(IntegrityResponse)](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityDialogRequest.Builder#setIntegrityResponse(com.google.android.play.core.integrity.IntegrityDialogRequest.IntegrityResponse)).  

### typeCode

```
public abstract int typeCode()
```

The type of the integrity dialog to be shown.

See the details [Builder#setTypeCode(int)](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/IntegrityDialogRequest.Builder#setTypeCode(int)).