[EN]PurchaseClient.Builder
public static final class PurchaseClient.Builder java.lang.Object ↳ com.gaa.sdk.iap.PurchaseClient.Builder
A builder that helps create a PurchaseClient instance easily.
Public Methods
setBase64PublicKey
@UiThreadpublic PurchaseClient.Builder setBase64PublicKey(String base64PublicKey) Please specify the public key that is issued from the developer center to check the validity of purchase information.
Parameters: | |
base64PublicKey | base64EncodedPublicKey |
Returns | |
PurchaseClient.Builder |
|
setListener
@UiThreadpublic PurchaseClient.Builder setListener(PurchasesUpdatedListener listener) Please specify to receive onPurchasesUpdated event.
Parameters: | |
listener | |
Returns: | |
PurchaseClient.Builder |
|
build
@UiThreadpublic PurchaseClient build() Creates a PurchaseClient's instance.
Return: | |
| |
Throws: | |
java.lang.IllegalArgumentException | Occurs if the context or listener is not normal. |
Last updated