PrePurchaseSDK

Manages global state and initialization for the prepurchase flow.

Properties

Link copied to clipboard

The current location payload as a JSON string, or null if not set.

Link copied to clipboard
var currentMarketDomain: TMMarketDomain

The current market domain for the prepurchase flow.

Link copied to clipboard

Indicates whether debug mode is enabled.

Link copied to clipboard

Indicates whether the discovery home screen is active.

Link copied to clipboard

Indicates whether the prepurchase flow is forced.

Link copied to clipboard

The language parameter for the current market (e.g., "en-us").

Link copied to clipboard

Indicates whether a non-discovery home screen is being launched.

Link copied to clipboard

The current location market model, or null if not set.

Link copied to clipboard

Tracks the number of page loads in the discovery flow.

Link copied to clipboard

The page load count limit for the discovery flow.

Link copied to clipboard

Indicates whether OneTrust has been initialized.

Functions

Link copied to clipboard

Cleans up resources and clears the location listener and member info.

Link copied to clipboard

Retrieves the current location update listener.

Link copied to clipboard
fun getMarketDomain(country: String): TMMarketDomain

Retrieves the market domain for a given country code.

Link copied to clipboard
fun getMemberInfo(): MemberInfo?

Retrieves the current member information.

Link copied to clipboard
fun launchPrePurchaseSDK(context: Context, tmPrePurchase: TMPrePurchase, tmPrePurchaseWebsiteConfiguration: TMPrePurchaseWebsiteConfiguration, activity: Class<out Any>)

Launches the prepurchase SDK with the specified configuration.

Link copied to clipboard

Registers a location update listener.

Link copied to clipboard
fun setMemberInfo(memberInfo: MemberInfo?)

Sets the member information for the prepurchase flow.