Class UrlAction


  • public class UrlAction
    extends Action
    An object that represents the action of type URL.
    • Nested Class Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      UrlAction​(java.lang.String imageUrl, java.lang.String label, java.lang.String url, boolean isOpenInWebView)
      Creates an action of type 'URL'
      UrlAction​(java.lang.String imageUrl, java.lang.String label, java.lang.String url, boolean isOpenInWebView, org.json.JSONObject channelExtensions)
      Creates an action of type 'URL'
    • Constructor Detail

      • UrlAction

        public UrlAction​(java.lang.String imageUrl,
                         java.lang.String label,
                         java.lang.String url,
                         boolean isOpenInWebView)
        Creates an action of type 'URL'
        Parameters:
        imageUrl - The image to display for the action
        label - The label to display for the action
        url - The URL of the website to open
        isOpenInWebView - The flag indication whether to open url in webview or not.
      • UrlAction

        public UrlAction​(java.lang.String imageUrl,
                         java.lang.String label,
                         java.lang.String url,
                         boolean isOpenInWebView,
                         org.json.JSONObject channelExtensions)
        Creates an action of type 'URL'
        Parameters:
        imageUrl - The image to display for the action
        label - The label to display for the action
        url - The URL of the website to open
        isOpenInWebView - The flag indication whether to open url in webview or not.
        channelExtensions - The channel specific extension properties associated with the location action
    • Method Detail

      • getUrl

        public java.lang.String getUrl()
        The URL of the website to open
        Returns:
        The URL of the website to open
      • setUrl

        public void setUrl​(java.lang.String url)
        Sets the URL of the website to open
        Parameters:
        url - The URL of the website to open
      • isOpenInWebView

        public boolean isOpenInWebView()
        Indication whether the url should open in webview.
        Returns:
        THE