Stay organized with collections
Save and categorize content based on your preferences.
Google.Play.Integrity.IntegrityTokenResponse
Response for IntegrityManager.RequestIntegrityToken.
Summary
Properties
|
Token
|
string
A token which contains the Base64 encoded response for the integrity related enquiries.
|
Public functions
|
ShowDialog(int typeCode)
|
Displays a dialog to the user.
|
Properties
Token
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
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 2024-10-24 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 2024-10-24 UTC."],[],[],null,["# Google.Play.Integrity.IntegrityTokenResponse Class Reference\n\nGoogle.Play.Integrity.IntegrityTokenResponse\n============================================\n\nResponse for [IntegrityManager.RequestIntegrityToken](/reference/unity/class/Google/Play/Integrity/IntegrityManager#classGoogle_1_1Play_1_1Integrity_1_1IntegrityManager_1a1dcfd0e7f77001135c708d6420d0b98e).\n\nSummary\n-------\n\n| ### Properties ||\n|---------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|\n| [Token](#classGoogle_1_1Play_1_1Integrity_1_1IntegrityTokenResponse_1ad74cf6abb09cf9cf7366acbd6d8521bd) | `string` A token which contains the Base64 encoded response for the integrity related enquiries. |\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ShowDialog](#classGoogle_1_1Play_1_1Integrity_1_1IntegrityTokenResponse_1aaa335f17569fee07d43da84509ac742e)`(int typeCode)` | `PlayAsyncOperation\u003c `[IntegrityDialogResponseCode](/reference/unity/namespace/Google/Play/Integrity#namespaceGoogle_1_1Play_1_1Integrity_1a664149de1380fe4ef98779a01ef9e3d2)`, `[IntegrityErrorCode](/reference/unity/namespace/Google/Play/Integrity#namespaceGoogle_1_1Play_1_1Integrity_1a7df9f11cac69ea066240452ce7300b63)` \u003e` Displays a dialog to the user. |\n\nProperties\n----------\n\n### Token\n\n```c#\nstring Token\n``` \nA token which contains the Base64 encoded response for the integrity related enquiries.\n\nThe response consists of a JSON payload that is signed and encrypted as a nested JSON Web Token (JWT).\n\nPublic functions\n----------------\n\n### ShowDialog\n\n```c#\nPlayAsyncOperation\u003c IntegrityDialogResponseCode, IntegrityErrorCode \u003e ShowDialog(\n int typeCode\n)\n``` \nDisplays a dialog to the user.\n\nThis method can only be called once per [Integrity](/reference/unity/namespace/Google/Play/Integrity#namespaceGoogle_1_1Play_1_1Integrity) API response.\n\n\u003cbr /\u003e\n\n| Details ||\n|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Parameters | |------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `typeCode` | determines which [Integrity](/reference/unity/namespace/Google/Play/Integrity#namespaceGoogle_1_1Play_1_1Integrity) Dialog type should be shown. See \u003chttps://developer.android.com/google/play/integrity/reference/com/google/android/play/core/integrity/model/IntegrityDialogTypeCode\u003e for the supported types. | |\n\n\u003cbr /\u003e\n\n| Details ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Returns** | A PlayAsyncOperation{TResult,TError} that returns [IntegrityDialogResponseCode](/reference/unity/namespace/Google/Play/Integrity#namespaceGoogle_1_1Play_1_1Integrity_1a664149de1380fe4ef98779a01ef9e3d2) on successful callback or [IntegrityErrorCode](/reference/unity/namespace/Google/Play/Integrity#namespaceGoogle_1_1Play_1_1Integrity_1a7df9f11cac69ea066240452ce7300b63) on failure callback. |"]]