Interface InAppMessagingDisplay
public interface InAppMessagingDisplay
The interface that a IAM display class must implement. Note that the developer is responsible
for calling the logging-related methods on InAppMessaging to track user-related metrics.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
displayMessage
(InAppMessage inAppMessage, InAppMessagingDisplayCallbacks callbacks, long delay) Called when an in-app message should be displayed.
-
Method Details
-
displayMessage
boolean displayMessage(@NonNull InAppMessage inAppMessage, @NonNull InAppMessagingDisplayCallbacks callbacks, long delay) Called when an in-app message should be displayed. It's the responsibility of the implementation to display the in-app message and use the callbacks parameter to report views and clicks.- Parameters:
inAppMessage
- - The in-app message.callbacks
- - The object used to report views, clicks and dismisses.delay
- - A delay in milliseconds. The implementation should wait this amount of time before triggering the display.- Returns:
- false when the message should be handled by the default, buit-in InAppMessagingDisplay instance. This instance will take care of reporting impressions and clicks to the display delegate. true if the message was handled
-