onAccept method

TikiSdk onAccept(
  1. dynamic onAccept(
    1. Offer,
    2. LicenseRecord?
    )
)

Sets the callback function for an accepted offer.

The onAccpet(...) event is triggered on the user's successful acceptance of the licensing offer. This happens after accepting the terms, not just on selecting "I'm In." The License Record is passed as a parameter to the callback function.

Implementation

TikiSdk onAccept(Function(Offer, LicenseRecord?) onAccept) {
  _onAccept = onAccept;
  return this;
}