Stay organized with collections
Save and categorize content based on your preferences.
IntegrityDialogTypeCode
public
abstract
@interface
IntegrityDialogTypeCode
implements
Annotation
com.google.android.play.core.integrity.model.IntegrityDialogTypeCode
|
Dialog type codes for Integrity API.
Summary
Constants |
int |
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
A dialog prompting users to close unknown apps which can capture or control the user screen.
|
int |
GET_LICENSED
A dialog prompting users to acquire or buy a license for the app from Google Play.
|
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.
|
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.
|
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.
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.
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.
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.
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.
Constant Value:
5
(0x00000005)
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-08-29 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[],[],null,["Summary: [Constants](#constants) \\| [Inherited Methods](#inhmethods) \n\nIntegrityDialogTypeCode\n\n\n`\npublic\n\n\nabstract\n@interface\nIntegrityDialogTypeCode\n`\n\n\n`\n\n\nimplements\n\n`[Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)`\n\n\n`\n\n|----------------------------------------------------------------------|\n| com.google.android.play.core.integrity.model.IntegrityDialogTypeCode |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nDialog type codes for Integrity API.\n\nSummary\n\n| Constants ||\n|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `int` | [CLOSE_ALL_ACCESS_RISK](../../../../../../../../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. |\n| `int` | [CLOSE_UNKNOWN_ACCESS_RISK](../../../../../../../../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. |\n| `int` | [GET_LICENSED](../../../../../../../../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. |\n| `int` | [GET_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. |\n| `int` | [GET_STRONG_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. |\n\n| Inherited methods |\n|-------------------|---|\n| 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)`\u003c? extends `[Annotation](https://developer.android.com/reference/java/lang/annotation/Annotation.html)`\u003e` | ` 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() ` | ||\n\nConstants \n\nCLOSE_ALL_ACCESS_RISK \n\n```\npublic static final int CLOSE_ALL_ACCESS_RISK\n```\n\nA dialog prompting users to close all apps which can capture or control the user screen.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n3\n(0x00000003)\n\n\nCLOSE_UNKNOWN_ACCESS_RISK \n\n```\npublic static final int CLOSE_UNKNOWN_ACCESS_RISK\n```\n\nA dialog prompting users to close unknown apps which can capture or control the user screen.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n2\n(0x00000002)\n\n\nGET_INTEGRITY \n\n```\npublic static final int GET_INTEGRITY\n```\n\nA dialog that guides users to achieve a `MEETS_DEVICE_INTEGRITY` verdict and obtain legitimate\napp access via the Play Store (e.g., by purchasing or installing) when applicable. It can also\nbe used in resolving user-remediable client-side errors.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n4\n(0x00000004)\n\n\nGET_LICENSED \n\n```\npublic static final int GET_LICENSED\n```\n\nA dialog prompting users to acquire or buy a license for the app from Google Play.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n1\n(0x00000001)\n\n\nGET_STRONG_INTEGRITY \n\n```\npublic static final int GET_STRONG_INTEGRITY\n```\n\nA dialog that guides users to achieve a `MEETS_STRONG_INTEGRITY` verdict, obtain legitimate\napp access via the Play Store (e.g., by purchasing or installing), and fix Play Protect\nissues when applicable. It can also be used in resolving user-remediable client-side errors.\n\n\u003cbr /\u003e\n\nConstant Value:\n\n5\n(0x00000005)"]]