In-app messaging callback
A callback to handle in-app messaging events.
Declared in
com.synerise.sdk.injector.inapp.IInAppListener
Should show
This method is called when a message needs to be shown.
boolean shouldShow(InAppMessageData inAppMessageData)
Parameter | Type | Description |
---|---|---|
inAppMessageData |
InAppMessageData |
In-app message data. |
Message shown
This method is called when a message is shown.
void onShown(InAppMessageData inAppMessageData)
Parameter | Type | Description |
---|---|---|
inAppMessageData |
InAppMessageData |
In-app message data. |
Message closed
This method is called when a message was closed.
void onDismissed(InAppMessageData inAppMessageData);
Parameter | Type | Description |
---|---|---|
inAppMessageData |
InAppMessageData |
In-app message data. |
Context needed
This method is called when the in-app message requires an individual context (for example a profile identifier, an item SKU).
HashMap<String, Object> onContextFromAppRequired(InAppMessageData inAppMessageData);
Parameter | Type | Description |
---|---|---|
inAppMessageData |
InAppMessageData |
In-app message data. |
URL action
This method is called when Synerise handles URL action from in-app messages.
void onHandledOpenUrl(InAppMessageData inAppMessageData);
Parameter | Type | Description |
---|---|---|
inAppMessageData |
InAppMessageData |
In-app message data. |
Deeplink action
This method is called when Synerise handles deeplink action from in-app messages.
void onHandledOpenDeepLink(InAppMessageData inAppMessageData);
Parameter | Type | Description |
---|---|---|
inAppMessageData |
InAppMessageData |
In-app message data. |
Custom action
This method is called when a custom action from an in-app message is handled.
void onCustomAction(String identifier, HashMap<String, Object> params, InAppMessageData inAppMessageData);
Parameter | Type | Description |
---|---|---|
inAppMessageData |
InAppMessageData |
In-app message data. |
identifier |
String |
Identifier of the custom action. |
params |
HashMap<String, Object> |
Custom action parameters. |