ExperienceConfiguration

constructor(eventId: String? = null, hidesHeadersAndFooters: Boolean = true, autoresizesHeight: Boolean = false, supportsLoadingState: Boolean = true, backgroundColor: Int? = null, parameters: HashMap<String, String>? = null, launchesURLsWithBlankTargetToChrome: Boolean = false, allowsPopupBehavior: Boolean = false, showsDefaultShareSheet: Boolean = true, dismissLoadingViewTimeout: Duration = 5.seconds, loadingViewProvider: () -> View? = null, errorViewProvider: (error: String) -> View? = null)

Parameters

eventId

string value of an Event's unique identifier

hidesHeadersAndFooters

used to hide/show for embedded experience if set to true/false

autoresizesHeight

used to automatically resize experience view on size changes if set to true

supportsLoadingState

used to show custom loading and error views on experience start-up if set to true

backgroundColor

used to set the background colour of the Experience.

loadingViewProvider

function used to replace SDK loading view with custom one. Requires supportsLoadingState to be true

errorViewProvider

function used to replace SDK error view with custom one. Requires supportsLoadingState to be true. Note: error String is not localised

parameters

dictionary value that determines any custom query parameters used in LauncherKit

launchesURLsWithBlankTargetToChrome

boolean value used to determine how to handle external links in LauncherKit

allowsPopupBehavior

boolean value used to determine how to handle pop-ups or dialogs in LauncherKit

showsDefaultShareSheet

boolean value used to determine whether SDK should automatically display the system share sheet when a share request is trigger from the experience. If false, share requests are forwarded to ExperienceViewListener.onShare for the host app to handle. Default is true.

dismissLoadingViewTimeout

duration after which the loading view will be dismissed if the Experience hasn't reported to successfully load. Defaults to 5 seconds