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 enum
Describes how the user dismissed an in-app message.static enum
Describes the common errors encountered when displaying in-app messages. -
Method Summary
Modifier and TypeMethodDescriptionvoid
displayErrorEncountered
(InAppMessagingDisplayCallbacks.InAppMessagingErrorReason inAppMessagingErrorReason) Report display errors.void
Log the impressionvoid
messageClicked
(List<com.wonderpush.sdk.ActionModel> actions) Log the click, passing along the corresponding actions.void
Log the dismissvoid
trackClick
(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
-
-