CatchOptions

data class CatchOptions(val colorTheme: CatchColorTheme = CatchColorTheme.Light, val environment: Environment = Environment.SANDBOX, val customFontFamily: CustomFontFamily? = null, val styleConfig: CatchStyleConfig? = null, val enableLogging: Boolean = false)

An object which specifies optional configuration settings to control the global behavior of the Catch SDK.

Constructors

Link copied to clipboard
constructor(colorTheme: CatchColorTheme = CatchColorTheme.Light, environment: Environment = Environment.SANDBOX, customFontFamily: CustomFontFamily? = null, styleConfig: CatchStyleConfig? = null, enableLogging: Boolean = false)

Properties

Link copied to clipboard

The default theme to be applied to all Catch widgets. Defaults to CatchColorTheme.Light.

Link copied to clipboard

An optional font family that will be applied to all text in widgets if set. Defaults to null.

Link copied to clipboard
val enableLogging: Boolean = false

A boolean flag to allow developers to control the SDK's logging. The SDK does not handle nor log any personal data. Recommended to only be enabled in debug builds. Defaults to false.

Link copied to clipboard

The LIVE environment should be used in production applications while the SANDBOX environment should be used for development and testing. Defaults to SANDBOX.

Link copied to clipboard

An optional style config that will be applied to the elements of all widgets if set. Defaults to null.