Interface InAppMessagingDisplayCallbacks
public interface InAppMessagingDisplayCallbacks
An interface implemented by the in-app messaging SDK that gets passed to the
InAppMessagingDisplay instance
to allow reporting of clicks and views.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumDescribes how the user dismissed an in-app message.static enumDescribes the common errors encountered when displaying in-app messages. -
Method Summary
Modifier and TypeMethodDescriptionvoiddisplayErrorEncountered(InAppMessagingDisplayCallbacks.InAppMessagingErrorReason inAppMessagingErrorReason) Report display errors.voidLog the impressionvoidmessageClicked(List<com.wonderpush.sdk.ActionModel> actions) Log the click, passing along the corresponding actions.voidLog the dismissvoidtrackClick(String buttonLabel) Log the click, passing along the corresponding buttonLabel.
-
Method Details
-
impressionDetected
void impressionDetected()Log the impression -
messageDismissed
void messageDismissed(@NonNull InAppMessagingDisplayCallbacks.InAppMessagingDismissType dismissType) Log the dismiss- Parameters:
dismissType-
-
messageClicked
Log the click, passing along the corresponding actions. Dismisses the message.- Parameters:
actions-
-
trackClick
Log the click, passing along the corresponding buttonLabel. Does NOT dismiss the message.- Parameters:
buttonLabel-
-
displayErrorEncountered
void displayErrorEncountered(@NonNull InAppMessagingDisplayCallbacks.InAppMessagingErrorReason inAppMessagingErrorReason) Report display errors.- Parameters:
inAppMessagingErrorReason-
-