registerInAppCallbacks method
Registers a list of InAppCallback instances to handle clicks and dismiss.
This method allows you to register one or more of the following callbacks:
- UrlInAppCallback for handling in-app messages by opening an associated URL.
- EmptyInAppCallback for handling in-app messages without performing any actions.
- CopyPayloadInAppCallback for handling in-app messages by copying the associated payload to the clipboard.
- CustomInAppCallback for providing custom click and dismiss handlers for in-app messages.
inAppCallbacks
is a required list of InAppCallback instances
to be registered for handling in-app message events.
If this method is not called, a default behavior will be implemented. The default behavior will open the link from the 'redirectUrl' parameter and copy the payload to the clipboard if it is not in JSON or XML format.
Implementation
void registerInAppCallbacks({required List<InAppCallback> inAppCallbacks}) =>
throw UnimplementedError(
'registerInAppCallbacks() has not been implemented.');