| java.lang.Object | |
| ↳ | com.urbanairship.iam.InAppMessageManager |
In-app messaging manager.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| interface | InAppMessageManager.DisplayDelegate | A display delegate that can be used to determine if an In-App message is ready for display or not. | |||||||||
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| long | DEFAULT_DISPLAY_INTERVAL_MS | Default delay between displaying in-app messages. | |||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
addListener(InAppMessageListener listener)
Adds a listener.
| ||||||||||
| AssetManager |
getAssetManager()
Gets the asset manager.
| ||||||||||
| long |
getDisplayInterval()
Gets the display interval in milliseconds.
| ||||||||||
| void |
notifyDisplayConditionsChanged()
Notifies In-App messages that the display conditions should be reevaluated.
| ||||||||||
| void | onMessageScheduleFinished(String scheduleId) | ||||||||||
| void | onNewMessageSchedule(String scheduleId, InAppMessage message) | ||||||||||
| void |
removeListener(InAppMessageListener listener)
Removes a listener.
| ||||||||||
| void |
setAdapterFactory(String displayType, InAppMessageAdapter.Factory factory)
Sets a
InAppMessageAdapter for a given display type. | ||||||||||
| void |
setDisplayDelegate(InAppMessageManager.DisplayDelegate displayDelegate)
Sets a custom display delegate that can be used to prevent In-App message from displaying.
| ||||||||||
| void |
setDisplayInterval(long time, TimeUnit timeUnit)
Sets the in-app message display interval on the default display coordinator.
| ||||||||||
| void |
setMessageExtender(InAppMessageExtender extender)
Sets the message extender.
| ||||||||||
| void |
setOnRequestDisplayCoordinatorCallback(OnRequestDisplayCoordinatorCallback callback)
Sets the callback for requesting display coordinators.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Default delay between displaying in-app messages.
Adds a listener.
| listener | The listener. |
|---|
Gets the display interval in milliseconds.
Notifies In-App messages that the display conditions should be reevaluated.
This should only be called when state from setDisplayDelegate(DisplayDelegate)
changes.
Removes a listener.
| listener | The listener. |
|---|
Sets a InAppMessageAdapter for a given display type.
| displayType | The display type. |
|---|---|
| factory | The adapter factory. |
Sets a custom display delegate that can be used to prevent In-App message from displaying.
| displayDelegate | The display delegate. |
|---|
Sets the in-app message display interval on the default display coordinator.
Defaults to DEFAULT_DISPLAY_INTERVAL_MS.
| time | The display interval. |
|---|---|
| timeUnit | The time unit. |
Sets the message extender. The message will be extended before asset caching, or before the message is prepared for display.
| extender | The extender. |
|---|
Sets the callback for requesting display coordinators.
| callback | The display request callback. |
|---|