setUpCountrySwitcher

fun setUpCountrySwitcher(context: Context, toolbar: Toolbar?, transparentBG: View?, countrySwitchBottomSheetBehavior: BottomSheetBehavior<View>?, bottomSheet: ConstraintLayout?, window: Window, labelAnalytics: String, hideCountrySelector: Boolean, tmPrePurchaseCountryPickerListener: TMPrePurchaseCountrySelectorListener?, selection: (TMMarketDomain) -> Unit)

Sets up the country switcher UI in the prepurchase flow.

Parameters

context

The Context used for accessing resources.

toolbar

The Toolbar containing the country selector, or null if not set.

transparentBG

The View for the transparent background, or null if not set.

countrySwitchBottomSheetBehavior

The BottomSheetBehavior for the country switcher, or null if not set.

bottomSheet

The ConstraintLayout for the bottom sheet, or null if not set.

window

The Window for status bar adjustments.

labelAnalytics

The analytics label for tracking the setup.

hideCountrySelector

Whether to hide the country selector UI.

tmPrePurchaseCountryPickerListener

The TMPrePurchaseCountrySelectorListener for country picker events, or null if not set.

selection

A callback invoked with the selected TMMarketDomain.