initialize

fun initialize(context: Context, publicKey: String, options: CatchOptions = CatchOptions())

Initializes the Catch SDK. Must be called from the onStart method of your Application class.

Parameters

context

The Android Context of the application.

publicKey

A string representing the merchant's public API key.

options

An object which specifies optional configuration settings to control the global behavior of the Catch SDK. If the options object is omitted, the Catch SDK will fallback to default values.