public class RichUIController
extends java.lang.Object
| Constructor and Description |
|---|
RichUIController() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkActivityForegroundAndDisplayRichMessage()
Displays
RichMessage from the queue if application is in foreground and no other RichMessage is currently displaying. |
void |
checkActivityForegroundAndDisplayRichMessage(java.util.List<RichMessage> richMessages)
Adds
RichMessage to the queue than displays next one if application is in foreground and no other RichMessage is currently displaying. |
void |
displayAllRichMessagesOnAppStart()
When application is opened display all pending Rich Messages on top.
|
static RichUIController |
getInstance()
Get instance of Donky Analytics singleton.
|
public static RichUIController getInstance()
public void checkActivityForegroundAndDisplayRichMessage(java.util.List<RichMessage> richMessages)
RichMessage to the queue than displays next one if application is in foreground and no other RichMessage is currently displaying. In other case
display Notification.richMessages - RichMessages to display.public void checkActivityForegroundAndDisplayRichMessage()
RichMessage from the queue if application is in foreground and no other RichMessage is currently displaying. In other case
display Notification.public void displayAllRichMessagesOnAppStart()