-
- All Implemented Interfaces:
public interface UIServiceInterface for displaying alerts, local notifications, and fullscreen web views.
-
-
Method Summary
Modifier and Type Method Description abstract voidshowAlert(AlertSetting alertSetting, AlertListener alertListener)Display an alert. abstract voidshowLocalNotification(NotificationSetting notificationSetting)Display a local notification. abstract booleanshowUrl(String url)abstract voidsetURIHandler(URIHandler uriHandler)Provides an URIHandler to decide the destination of the given URI abstract IntentgetIntentWithURI(String uri)Returns a destination Intent for the given URI. abstract FloatingButtoncreateFloatingButton(FloatingButtonListener buttonListener)Creates a floating button instance abstract FullscreenMessagecreateFullscreenMessage(String html, FullscreenMessageDelegate listener, boolean isLocalImageUsed, MessageSettings settings)Create a Messaging extension in-app message. -
-
Method Detail
-
showAlert
abstract void showAlert(AlertSetting alertSetting, AlertListener alertListener)
Display an alert.
- Parameters:
alertSetting- An AlertSetting instance used for building an alert.alertListener- An AlertListener instance for alert message events
-
showLocalNotification
abstract void showLocalNotification(NotificationSetting notificationSetting)
Display a local notification.
- Parameters:
notificationSetting- An NotificationSetting instance used for building a local notification.
-
setURIHandler
abstract void setURIHandler(URIHandler uriHandler)
Provides an URIHandler to decide the destination of the given URI
- Parameters:
uriHandler- An URIHandler instance used to decide the Android link's destination
-
getIntentWithURI
abstract Intent getIntentWithURI(String uri)
Returns a destination Intent for the given URI.
- Parameters:
uri- the URI to open
-
createFloatingButton
abstract FloatingButton createFloatingButton(FloatingButtonListener buttonListener)
Creates a floating button instance
- Parameters:
buttonListener- FloatingButtonListener instance used for tracking UI floating button activity (tap/drag)
-
createFullscreenMessage
abstract FullscreenMessage createFullscreenMessage(String html, FullscreenMessageDelegate listener, boolean isLocalImageUsed, MessageSettings settings)
Create a Messaging extension in-app message.
WARNING: This API consumes HTML/CSS/JS using an embedded browser control. This means it is subject to all the risks of rendering untrusted web pages and running untrusted JS. Treat all calls to this API with caution and make sure input is vetted for safety somewhere.
- Parameters:
html- String html content to be displayed with the messagelistener- FullscreenMessageDelegate for listening to Messaging extension in-app message eventsisLocalImageUsed- If true, an image from the app's assets directory will be used for the fullscreen message.settings- MessageSettings object defining layout and behavior of the new message.
-
-
-
-