TMPrePurchase

constructor(environment: TMEnvironment, @ColorInt brandColor: Int, @DrawableRes brandActionIcon: Int, discoApiKey: String)

Creates a TMPrePurchase with specified environment, color, icon, and API key.

Parameters

environment

The TMEnvironment to use.

brandColor

The brand color for UI elements.

brandActionIcon

The toolbar action icon resource.

discoApiKey

The API key for the discovery service.


constructor(environment: TMEnvironment, @ColorInt brandColor: Int, discoApiKey: String)

Creates a TMPrePurchase with specified environment, color, and API key.

Parameters

environment

The TMEnvironment to use.

brandColor

The brand color for UI elements.

discoApiKey

The API key for the discovery service.


constructor(environment: TMEnvironment = TMEnvironment.Production, useDebugAnalytics: Boolean = false, dismissUponCompletion: Boolean = true, @ColorInt brandColor: Int? = null, @DrawableRes brandToolBarActionIcon: Int? = null, discoveryAPIKey: String)

Parameters

environment

The TMEnvironment to use, defaults to Production.

useDebugAnalytics

Whether to enable debug analytics, defaults to false.

dismissUponCompletion

Whether to close the SDK on completion, defaults to true.

brandColor

The brand color for UI elements, or null if not set.

brandToolBarActionIcon

The toolbar action icon resource, or null if not set.

discoveryAPIKey

The API key for the discovery service.