Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
StandardIntegrityManager.StandardIntegrityToken
public
static
abstract
class
StandardIntegrityManager.StandardIntegrityToken
extends Object
java.lang.Object
|
↳ |
com.google.android.play.core.integrity.StandardIntegrityManager.StandardIntegrityToken
|
Respons dari StandardIntegrityManager.StandardIntegrityTokenProvider.request(StandardIntegrityTokenRequest)
.
Ringkasan
Metode turunan |
Dari class
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()
|
|
Konstruktor publik
StandardIntegrityToken
public StandardIntegrityToken ()
Metode publik
showDialog
public abstract Task<Integer> showDialog (Activity activity,
int typeCode)
Metode ini tidak digunakan lagi.
Sebagai gantinya, gunakan
StandardIntegrityManager.showDialog(StandardIntegrityDialogRequest)
.
Menampilkan dialog kepada pengguna.
Metode ini hanya dapat dipanggil sekali setiap respons Integrity API.
Parameter |
activity |
Activity |
typeCode |
int : menentukan jenis Dialog Integritas yang harus ditampilkan. Nilai yang tersedia
dapat ditemukan di token() . |
Return |
Task<Integer> |
Task yang selesai dengan IntegrityDialogResponseCode,
alur showDialog berhasil atau gagal.
|
token
public abstract String token ()
Token yang berisi respons untuk pertanyaan terkait integritas.
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-08-29 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-29 UTC."],[],[],null,["Summary: [Ctors](#pubctors) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nStandardIntegrityManager.StandardIntegrityToken\n\n\n`\npublic\nstatic\n\nabstract\nclass\nStandardIntegrityManager.StandardIntegrityToken\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.StandardIntegrityManager.StandardIntegrityToken |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nResponse of [StandardIntegrityManager.StandardIntegrityTokenProvider.request(StandardIntegrityTokenRequest)](../../../../../../../reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityTokenProvider.html#request(com.google.android.play.core.integrity.StandardIntegrityManager.StandardIntegrityTokenRequest)).\n\nSummary\n\n| Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[StandardIntegrityToken](../../../../../../../reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityToken.html#StandardIntegrityToken())`() ` |\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/StandardIntegrityManager.StandardIntegrityToken.html#showDialog(android.app.Activity,%20int))`(`[Activity](https://developer.android.com/reference/android/app/Activity.html)` activity, int typeCode) ` *This method is deprecated. Use [StandardIntegrityManager.showDialog(StandardIntegrityDialogRequest)](../../../../../../../reference/com/google/android/play/core/integrity/StandardIntegrityManager.html#showDialog(com.google.android.play.core.integrity.StandardIntegrityManager.StandardIntegrityDialogRequest)) instead.* |\n| ` abstract `[String](https://developer.android.com/reference/java/lang/String.html) | ` `[token](../../../../../../../reference/com/google/android/play/core/integrity/StandardIntegrityManager.StandardIntegrityToken.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\nStandardIntegrityToken \n\n```\npublic StandardIntegrityToken ()\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 [StandardIntegrityManager.showDialog(StandardIntegrityDialogRequest)](../../../../../../../reference/com/google/android/play/core/integrity/StandardIntegrityManager.html#showDialog(com.google.android.play.core.integrity.StandardIntegrityManager.StandardIntegrityDialogRequest))\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/StandardIntegrityManager.StandardIntegrityToken.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 |"]]