EnableBillingProgramParams.Builder

public final class EnableBillingProgramParams.Builder


Builder for EnableBillingProgramParams.

Summary

Public constructors

Public methods

EnableBillingProgramParams

Builds the EnableBillingProgramParams.

EnableBillingProgramParams.Builder
setBillingProgram(int billingProgram)

Sets the billing program to enable.

EnableBillingProgramParams.Builder

Sets the listener for receiving callbacks when the end-user selects the developer-provided billing option.

Public constructors

Builder

public Builder()

Public methods

setBillingProgram

public EnableBillingProgramParams.Builder setBillingProgram(int billingProgram)

Sets the billing program to enable. Required.

setDeveloperProvidedBillingListener

public EnableBillingProgramParams.Builder setDeveloperProvidedBillingListener(
    DeveloperProvidedBillingListener developerProvidedBillingListener
)

Sets the listener for receiving callbacks when the end-user selects the developer-provided billing option. May only be used with the BillingProgram#EXTERNAL_PAYMENTS billing program.