Summary: [Constants](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/IntegrityDialogTypeCode#constants) \| [Inherited Methods](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/IntegrityDialogTypeCode#inhmethods)  

# IntegrityDialogTypeCode


`
public


abstract
@interface
IntegrityDialogTypeCode
`


`


implements

`[Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)`


`

|----------------------------------------------------------------------|
| com.google.android.play.core.integrity.model.IntegrityDialogTypeCode |

<br />

*** ** * ** ***

Dialog type codes for Integrity API.

## Summary

|                                                                                                                                                                                                                             ### Constants                                                                                                                                                                                                                             ||
|-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [CLOSE_ALL_ACCESS_RISK](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/IntegrityDialogTypeCode.html#CLOSE_ALL_ACCESS_RISK) A dialog prompting users to close all apps which can capture or control the user screen.                                                                                                                                                                                |
| `int` | [CLOSE_UNKNOWN_ACCESS_RISK](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/IntegrityDialogTypeCode.html#CLOSE_UNKNOWN_ACCESS_RISK) A dialog prompting users to close unknown apps which can capture or control the user screen.                                                                                                                                                                    |
| `int` | [GET_LICENSED](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/IntegrityDialogTypeCode.html#GET_LICENSED) A dialog prompting users to acquire or buy a license for the app from Google Play.                                                                                                                                                                                                        |
| `int` | [GET_INTEGRITY](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/IntegrityDialogTypeCode.html#GET_INTEGRITY) A dialog that guides users to achieve a `MEETS_DEVICE_INTEGRITY` verdict and obtain legitimate app access via the Play Store (e.g., by purchasing or installing) when applicable. It can also be used in resolving user-remediable client-side errors.                                  |
| `int` | [GET_STRONG_INTEGRITY](https://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/IntegrityDialogTypeCode.html#GET_INTEGRITY) A dialog that guides users to achieve a `MEETS_STRONG_INTEGRITY` verdict, obtain legitimate app access via the Play Store (e.g., by purchasing or installing), and fix Play Protect issues when applicable. It can also be used in resolving user-remediable client-side errors. |

| ### Inherited methods |
|-----------------------|---|
| From interface ` `[java.lang.annotation.Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)` ` |---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` abstract `[Class](https://developer.android.com/reference/java/lang/Class.html)`<? extends `[Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)`>` | ` annotationType() `                                                                       | | ` abstract boolean`                                                                                                                                                                         | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` abstract int`                                                                                                                                                                             | ` hashCode() `                                                                             | | ` abstract `[String](https://developer.android.com/reference/java/lang/String.html)                                                                                                         | ` toString() `                                                                             | ||

## Constants

### CLOSE_ALL_ACCESS_RISK

```
public static final int CLOSE_ALL_ACCESS_RISK
```

A dialog prompting users to close all apps which can capture or control the user screen.

<br />

Constant Value:

3
(0x00000003)


### CLOSE_UNKNOWN_ACCESS_RISK

```
public static final int CLOSE_UNKNOWN_ACCESS_RISK
```

A dialog prompting users to close unknown apps which can capture or control the user screen.

<br />

Constant Value:

2
(0x00000002)


### GET_INTEGRITY

```
public static final int GET_INTEGRITY
```

A dialog that guides users to achieve a `MEETS_DEVICE_INTEGRITY` verdict and obtain legitimate
app access via the Play Store (e.g., by purchasing or installing) when applicable. It can also
be used in resolving user-remediable client-side errors.

<br />

Constant Value:

4
(0x00000004)


### GET_LICENSED

```
public static final int GET_LICENSED
```

A dialog prompting users to acquire or buy a license for the app from Google Play.

<br />

Constant Value:

1
(0x00000001)


### GET_STRONG_INTEGRITY

```
public static final int GET_STRONG_INTEGRITY
```

A dialog that guides users to achieve a `MEETS_STRONG_INTEGRITY` verdict, obtain legitimate
app access via the Play Store (e.g., by purchasing or installing), and fix Play Protect
issues when applicable. It can also be used in resolving user-remediable client-side errors.

<br />

Constant Value:

5
(0x00000005)