onSettings

fun onSettings(onSettings: (Context) -> Deferred<Unit>): TikiSdk

Sets the callback function for when the user selects "Settings" in the ending widget.

This method sets the onSettings() event handler, which is triggered when the user selects "Settings" in the ending screen. If a callback function is not registered, the SDK will default to calling the TikiSdk.settings() method.

Parameters

onSettings

: The closure to be executed when the "Settings" option is selected. The closure takes the Application Context as argument and returns no value