com.google.android.gms.wallet.contract

  • ApiTaskResult represents the result of a Task with additional execution outcome information.

  • TaskResultContracts is a collection of ActivityResultContracts used to resolve Task objects.

  • Specific TaskResultContracts like GetPaymentData and GetPaymentDataResult provide contracts for retrieving PaymentData objects.

  • Other TaskResultContracts like GetApiTaskResult, ResolveApiTaskResult, and UnpackApiTaskResult handle tasks yielding various result types or wrappers.

Classes

ApiTaskResult<T> A representation of the result of a Task, which includes additional information about the outcome of the execution. 
TaskResultContracts A collection of ActivityResultContracts to resolve Task objects. 
TaskResultContracts.GetApiTaskResult<T> A contract that takes a Task<T> and yields an ApiTaskResult<T> with the result and additional information about the operation. 
TaskResultContracts.GetPaymentData A simple contract that returns a PaymentData object. 
TaskResultContracts.GetPaymentDataResult A simple contract based on TaskResultContracts.GetApiTaskResult that returns a wrapper including a PaymentData object and additional information about the Task operation. 
TaskResultContracts.ResolveApiTaskResult<I, O> A contract that takes a Task<I> and yields a result O
TaskResultContracts.UnpackApiTaskResult<T> A contract that takes a Task<T> and optionally returns its result T? if the task completes successfully.