Skip to main content
Version: v4

Action Entity

Base class for defining the type of actions that can be performed on BaseInteractiveElement

Various types of Actions:

ActionDescription
Api ActionTo perform Post, PUT , DELETE, PATCH type of API actions on the user-defined APIs with given payload
URL NavigationTo open any defined action on given url
Custom ActionTo set custom action on front end

API Action

APIAction apiAction = new APIAction("https url", "POST", "Keyname"); // Keyname can be any userdefined string
JSONObject payload = new JSONObject(finalString);
apiAction.setPayload(payload);

JSONObject header = new JSONObject();
apiAction.setHeaders(header);

URL Navigation

URLNavigationAction urlNavigationAction = new URLNavigationAction("https://www.cometchat.com/");