Class UrlAction
- java.lang.Object
-
- oracle.cloud.bots.mobile.core.payload.Action
-
- oracle.cloud.bots.mobile.core.payload.UrlAction
-
public class UrlAction extends Action
An object that represents the action of type URL.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class oracle.cloud.bots.mobile.core.payload.Action
Action.ActionType
-
-
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'
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetUrl()The URL of the website to openbooleanisOpenInWebView()Indication whether the url should open in webview.voidsetUrl(java.lang.String url)Sets the URL of the website to open-
Methods inherited from class oracle.cloud.bots.mobile.core.payload.Action
getActionType, getChannelExtensions, getImageUrl, getLabel, setActionType, setChannelExtensions, setImageUrl, setLabel
-
-
-
-
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 actionlabel- The label to display for the actionurl- The URL of the website to openisOpenInWebView- 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 actionlabel- The label to display for the actionurl- The URL of the website to openisOpenInWebView- 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
-
-