Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
IntegrityTokenResponse
public
abstract
class
IntegrityTokenResponse
extends Object
java.lang.Object |
↳ |
com.google.android.play.core.integrity.IntegrityTokenResponse
|
Réponse pour IntegrityManager.requestIntegrityToken(IntegrityTokenRequest)
.
Résumé
Méthodes héritées |
De la classe
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Constructeurs publics
IntegrityTokenResponse
public IntegrityTokenResponse ()
Méthodes publiques
showDialog
public abstract Task<Integer> showDialog (Activity activity,
int typeCode)
Cette méthode est obsolète.
Utilisez plutôt
IntegrityManager.showDialog(IntegrityDialogRequest)
.
Affiche une boîte de dialogue.
Cette méthode ne peut être appelée qu'une seule fois par réponse de l'API Integrity.
Paramètres |
activity |
Activity |
typeCode |
int : détermine le type de boîte de dialogue d'intégrité à afficher. Les valeurs disponibles se trouvent dans le token() . |
Renvoie |
Task<Integer> |
Une Task qui se termine par un IntegrityDialogResponseCode une fois que le flux showDialog a réussi ou échoué.
|
token
public abstract String token ()
Un jeton contenant la réponse aux demandes liées à l'intégrité.
Le contenu et les exemples de code de cette page sont soumis aux licences décrites dans la Licence de contenu. Java et OpenJDK sont des marques ou des marques déposées d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/08/29 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/08/29 (UTC)."],[],[],null,["Summary: [Ctors](#pubctors) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nIntegrityTokenResponse\n\n\n`\npublic\n\n\nabstract\nclass\nIntegrityTokenResponse\n`\n\n\n`\n\nextends `[Object](https://developer.android.com/reference/java/lang/Object.html)`\n\n\n`\n\n`\n\n\n`\n\n|---|---------------------------------------------------------------|\n| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||\n| ↳ | com.google.android.play.core.integrity.IntegrityTokenResponse |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nResponse for [IntegrityManager.requestIntegrityToken(IntegrityTokenRequest)](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityManager.html#requestIntegrityToken(com.google.android.play.core.integrity.IntegrityTokenRequest)).\n\nSummary\n\n| Public constructors ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[IntegrityTokenResponse](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenResponse.html#IntegrityTokenResponse())`() ` |\n\n| Public methods ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract `[Task](https://developer.google.com/android/reference/com/google/android/gms/tasks/Task.html)`\u003c`[Integer](https://developer.android.com/reference/java/lang/Integer.html)`\u003e` | ` `[showDialog](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenResponse.html#showDialog(android.app.Activity,%20int))`(`[Activity](https://developer.android.com/reference/android/app/Activity.html)` activity, int typeCode) ` *This method is deprecated. Use [IntegrityManager.showDialog(IntegrityDialogRequest)](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityManager.html#showDialog(com.google.android.play.core.integrity.IntegrityDialogRequest)) instead.* |\n| ` abstract `[String](https://developer.android.com/reference/java/lang/String.html) | ` `[token](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenResponse.html#token())`() ` A token which contains the response for the integrity related enquiries. |\n\n| Inherited methods |\n|-------------------|---|\n| From class ` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)` ` |-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` boolean` | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` final `[Class](https://developer.android.com/reference/java/lang/Class.html)`\u003c?\u003e` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` `[String](https://developer.android.com/reference/java/lang/String.html) | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||\n\nPublic constructors \n\nIntegrityTokenResponse \n\n```\npublic IntegrityTokenResponse ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods \n\nshowDialog \n\n```\npublic abstract Task\u003cInteger\u003e showDialog (Activity activity, \n int typeCode)\n```\n\n**This method is deprecated.** \n\nUse [IntegrityManager.showDialog(IntegrityDialogRequest)](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityManager.html#showDialog(com.google.android.play.core.integrity.IntegrityDialogRequest))\ninstead.\n\nDisplays a dialog to the user.\n\nThis method can only be called once per Integrity API response.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `activity` | `Activity` \u003cbr /\u003e |\n| `typeCode` | `int`: determines which Integrity Dialog type should be shown. The available values can be found in the [token()](../../../../../../../reference/com/google/android/play/core/integrity/IntegrityTokenResponse.html#token()). \u003cbr /\u003e |\n\n| Returns ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Task](https://developer.google.com/android/reference/com/google/android/gms/tasks/Task.html)`\u003c`[Integer](https://developer.android.com/reference/java/lang/Integer.html)`\u003e` | A [Task](https://developer.google.com/android/reference/com/google/android/gms/tasks/Task.html) that completes with a IntegrityDialogResponseCode the showDialog flow succeeded or failed. \u003cbr /\u003e |\n\ntoken \n\n```\npublic abstract String token ()\n```\n\nA token which contains the response for the integrity related enquiries.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------------------------------------------------------------------------|--------|\n| [String](https://developer.android.com/reference/java/lang/String.html) | \u003cbr /\u003e |"]]