com.google.android.gms.wallet.contract
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["`ApiTaskResult` represents the result of a `Task`, including additional execution outcome information."],["`TaskResultContracts` provides `ActivityResultContract`s to resolve `Task` objects."],["Contracts like `GetApiTaskResult`, `GetPaymentData`, and others help retrieve and manage task results, including payment data."],["These contracts simplify handling `Task` outcomes and extracting results for Google Wallet operations."]]],["The content outlines several classes for handling task results within the Google Wallet API. `ApiTaskResult` represents the outcome of a `Task`. `TaskResultContracts` offers contracts to resolve `Task` objects. Specific contracts include: `GetApiTaskResult`, which yields an `ApiTaskResult`; `GetPaymentData`, returning `PaymentData`; `GetPaymentDataResult`, a wrapper around `PaymentData` and task details; `ResolveApiTaskResult`, for converting a `Task` to a result; and `UnpackApiTaskResult`, for retrieving a `Task` result if successful.\n"]]