public interface MessagingListenerV2
Modifier and Type | Method and Description |
---|---|
void |
localyticsDidDismissInAppMessage()
Callback that an in-app message was dismissed.
|
void |
localyticsDidDisplayInAppMessage()
Callback that an in-app message was displayed.
|
boolean |
localyticsShouldDelaySessionStartInAppMessages()
Callback to determine if In-App campaigns triggered by session
start should be shown.
|
boolean |
localyticsShouldShowInAppMessage(InAppCampaign campaign)
Callback to determine if an In-App campaign should be shown.
|
boolean |
localyticsShouldShowPlacesPushNotification(PlacesCampaign campaign)
Callback to determine if the triggering of a Places campaign should show a local notification.
|
boolean |
localyticsShouldShowPushNotification(PushCampaign campaign)
Callback to determine if a Push campaign should be shown.
|
void |
localyticsWillDismissInAppMessage()
Callback that an in-app message will be dismissed.
|
InAppConfiguration |
localyticsWillDisplayInAppMessage(InAppCampaign campaign,
InAppConfiguration configuration)
Callback to modify presentation of an In-App Campaign.
|
android.support.v4.app.NotificationCompat.Builder |
localyticsWillShowPlacesPushNotification(android.support.v4.app.NotificationCompat.Builder builder,
PlacesCampaign campaign)
Callback to determine if a Push campaign should show a local notification.
|
android.support.v4.app.NotificationCompat.Builder |
localyticsWillShowPushNotification(android.support.v4.app.NotificationCompat.Builder builder,
PushCampaign campaign)
Callback to determine if a Push campaign should show a local notification.
|
boolean localyticsShouldShowInAppMessage(@NonNull InAppCampaign campaign)
campaign
- The campaign that will be shown@NonNull InAppConfiguration localyticsWillDisplayInAppMessage(@NonNull InAppCampaign campaign, @NonNull InAppConfiguration configuration)
campaign
- An immutable object representing the campaign that will be shownconfiguration
- An object representing the mutable visual state of the In-App campaignInAppConfiguration
void localyticsDidDisplayInAppMessage()
void localyticsWillDismissInAppMessage()
void localyticsDidDismissInAppMessage()
boolean localyticsShouldDelaySessionStartInAppMessages()
Localytics.triggerInAppMessagesForSessionStart()
boolean localyticsShouldShowPushNotification(@NonNull PushCampaign campaign)
campaign
- An object defining a Push Campaignboolean localyticsShouldShowPlacesPushNotification(@NonNull PlacesCampaign campaign)
campaign
- An object defining a Places Campaign@NonNull android.support.v4.app.NotificationCompat.Builder localyticsWillShowPlacesPushNotification(@NonNull android.support.v4.app.NotificationCompat.Builder builder, @NonNull PlacesCampaign campaign)
builder
- The Android Notification builder used to customize a local notification.campaign
- The campaign that triggered the push notification@NonNull android.support.v4.app.NotificationCompat.Builder localyticsWillShowPushNotification(@NonNull android.support.v4.app.NotificationCompat.Builder builder, @NonNull PushCampaign campaign)
builder
- The Android Notification builder used to customize a local notification.campaign
- The campaign that triggered the push notification