PurchaseClient.Builder
Last updated
Last updated
public static final class PurchaseClient.Builder java.lang.Object ↳ com.gaa.sdk.iap.PurchaseClient.Builder
是創建PurchaseClient實例(instance)的builder。
@UiThread public PurchaseClient.Builder setBase64PublicKey(String base64PublicKey)
請指定開發者中心發放的public key来確認購買資訊的有效性。
@UiThread public PurchaseClient.Builder setListener(PurchasesUpdatedListener listener)
請印行指定,可以接收onPurchasesUpdated活动。
@UiThread public PurchaseClient build()
生成PurchaseClient實例(instance)。
Parameters:
base64PublicKey
base64EncodedPublicKey
Returns
PurchaseClient.Builder
Parameters:
listener
PurchasesUpdatedListener
Returns:
PurchaseClient.Builder
Return:
PurchaseClient
Throws:
java.lang.IllegalArgumentException
context or listener 不正常時發生。