จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
IntegrityTokenResponse
public
abstract
class
IntegrityTokenResponse
extends Object
java.lang.Object
|
↳ |
com.google.android.play.core.integrity.IntegrityTokenResponse
|
การตอบกลับสำหรับ IntegrityManager.requestIntegrityToken(IntegrityTokenRequest)
สรุป
วิธีการที่รับมา |
จากชั้นเรียน
วันที่
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()
|
|
ช่างก่อสร้างสาธารณะ
IntegrityTokenResponse
public IntegrityTokenResponse ()
วิธีการสาธารณะ
กล่องโต้ตอบรายการ
public abstract Task<Integer> showDialog (Activity activity,
int typeCode)
แสดงกล่องโต้ตอบแก่ผู้ใช้
จะเรียกเมธอดนี้ได้เพียง 1 ครั้งต่อการตอบกลับของ Integrity API
พารามิเตอร์ |
activity |
Activity |
typeCode |
int : กำหนดว่าจะแสดงกล่องโต้ตอบความสมบูรณ์ประเภทใด ค่าที่ใช้ได้
อยู่ใน token() |
คิกรีเทิร์น |
Task<Integer> |
Task ที่เสร็จสมบูรณ์ด้วย IntegrityDialogResponseCode กับ showDialog
ดำเนินการสำเร็จหรือล้มเหลว
|
โทเค็น
public abstract String token ()
โทเค็นที่มีคำตอบสำหรับการสอบถามที่เกี่ยวข้องกับความสมบูรณ์
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-07-27 UTC"],[],[],null,["# IntegrityTokenResponse\n\nSummary: [Ctors](#pubctors) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nIntegrityTokenResponse\n======================\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\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) ` Displays a dialog to the user. |\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-------------------\n\n### IntegrityTokenResponse\n\n```\npublic IntegrityTokenResponse ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### showDialog\n\n```\npublic abstract Task\u003cInteger\u003e showDialog (Activity activity, \n int typeCode)\n```\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\n### token\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 |"]]