PurchaseClient.Builder

public static final class PurchaseClient.Builder
java.lang.Object
    ↳ com.gaa.sdk.iap.PurchaseClient.Builder

It is a builder for creating the PurchaseClient instances.

Public Methods


setBase64PublicKey

@UiThread
public PurchaseClient.Builder setBase64PublicKey(String base64PublicKey)

Specify the public key issued by Developer Center for checking the validity of purchase information.

Parameters:

base64PublicKey

base64EncodedPublicKey

Returns

PurchaseClient.Builder

setListener

@UiThread
public PurchaseClient.Builder setListener( listener)

Specify to receive the onPurchasesUpdated event.

Parameters:

listener

Returns:

PurchaseClient.Builder

build

@UiThread
public  build()

It creates PurchaseClient instances.

Return:

Throws:

java.lang.IllegalArgumentException

It occurs if context or listener is abnormal.

Last updated