Base class for defining the type of actions that can be performed on BaseInteractiveElementVarious types of Actions:
Plugin Configuration
Action
Description
Key
Api Action
To perform Post, PUT, DELETE, PATCH type of API actions on the user-defined APIs with given payload
apiAction
URL Navigation
To open any defined action on given URL
urlNavigation
Custom Action
To set a custom action on the front end
customAction
Api Action
Api Action
Swift
let action = APIAction()action.url = "url" //Replace this with the required urlaction.method = .post,//replace this with the type of methodaction.dataKey: "cometchatData",//replace this with the key , if you want to replace the key oin which all the data for form will be sentaction.headers = header,//set the header for the requestaction.payload = payload//set the payloaf forn the request"\
URL Navigation
Swift
let navigation = URLNavigationAction()navigation.url = "https://www.cometchat.com/"