IapResult
public final class IapResult extends Object
java.lang.Object
↳ com.gaa.sdk.iap.IapResult
It is an object with the code and message of in-app purchase API responses included.
Summary
Nested classes
class
It is a builder for easy creation of the IapResult instances.
Public methods
getResponseCode
int getResponseCode()
It returns in-app purchase API response codes.
Returns:
int
Response code value corresponding to PurchaseClient.ResponseCode.
getMessage
String getMessage()
It returns the message of in-app purchase API responses.
Returns:
String
isSuccess
boolean isSuccess()
It shows whether in-app purchase API response codes are a success (PurchaseClient.ResponseCode.RESULT_OK).
Returns:
boolean
isFailure
boolean isFailure()
It shows whether in-app purchase API response codes fail.
Returns:
boolean
newBuilder
newBuilder()
It generates a builder for creating the IapResult instances.
Returns:
Last updated