setOnSettings method

TikiSdk setOnSettings(
  1. dynamic onSettings(
    1. Offer
    )
)

Sets the callback function for user selecting the "settings" option in ending widget.

The onSettings() event is triggered when the user selects "settings" in the ending screen. If a callback function is not registered, the SDK defaults to calling the TikiSdk.settings() method.

Implementation

TikiSdk setOnSettings(Function(Offer) onSettings) {
  _onSettings = onSettings;
  return this;
}