[EN]IapResult

public final class IapResult extends Object java.lang.Object ↳ com.gaa.sdk.iap.IapResult

An object that includes the In-app Purchase API response code and message.

Summary


Nested classes

class

IapResult.Builder A builder that helps create a lapResult's instance easily.

Public methods


getResponseCode

int getResponseCode() It restores the In-app Purchase API Response Code.

Returns:

int

The result value that corresponds to PurchaseClient.ResponseCode.

getMessage

String getMessage() Restores the In-app Purchase API Response Message.

Returns:

String

isSuccess

boolean isSuccess() Indicates whether In-app Purchase API Response Code is successful (PurchaseClient.ResponseCode.RESULT_OK).

Returns:

boolean

isFailure

boolean isFailure() Indicates whether In-app Purchase API ResponseCode has failed.

Returns:

boolean

newBuilder

IapResult.Builder newBuilder() Generates the builder to create a lapResult instance.

Last updated