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. This is only used when you enable BillingProgram.EXTERNAL_PAYMENTS, or want to provide BillingProgram.SIDE_BY_SIDE_BILLING with a Google Play rendered user choice screen.