Package 

Interface UIService

  • All Implemented Interfaces:

    
    public interface UIService
    
                        

    Interface for displaying alerts, local notifications, and fullscreen web views.

    • Constructor Detail

    • Method Detail

      • 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
      • 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 message
        listener - FullscreenMessageDelegate for listening to Messaging extension in-app message events
        isLocalImageUsed - 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.