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.
  • Method Details

    • impressionDetected

      void impressionDetected()
      Log the impression
    • messageDismissed

      void messageDismissed(@NonNull InAppMessagingDisplayCallbacks.InAppMessagingDismissType dismissType)
      Log the dismiss
      Parameters:
      dismissType -
    • messageClicked

      void messageClicked(@NonNull List<com.wonderpush.sdk.ActionModel> actions)
      Log the click, passing along the corresponding actions. Dismisses the message.
      Parameters:
      actions -
    • trackClick

      void trackClick(@Nullable String buttonLabel)
      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 -