CustomInAppCallback class
Handler for In-app actions that allows custom implementation for handling clicks and dismiss events. The CustomInAppCallback class provides a flexible way to implement custom handling for in-app clicks using the InAppClickHandler and dismiss events using the InAppDismissedHandler.
Example usage:
CustomInAppCallback( clickHandler: (id, redirectUrl, payload) => { /* your custom click handling logic / }, dismissedHandler: (id) => { / your custom dismiss handling logic */ }, )
- Inheritance
-
- Object
- InAppCallback
- CustomInAppCallback
Constructors
- CustomInAppCallback(InAppClickHandler clickHandler, InAppDismissedHandler dismissedHandler)
- Constructs a CustomInAppCallback with the provided click and dismiss handlers.
Properties
- clickHandler → InAppClickHandler
-
clickHandler is the function to handle click events in the in-app
final
- dismissedHandler → InAppDismissedHandler
-
dismissedHandler is the function to handle dismiss events in the in-app
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
Type of InAppCallback
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited