Skip to main content

Action Entity

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

Various types of Actions:

ActionDescriptionKey
API ActionTo perform Post, PUT , DELETE, PATCH type of API actions on the user-defined APIs with given payloadapiAction
URL NavigationTo open any defined action on given urlurlNavigation
Custom ActionTo set custom action on front endcustomAction

API Action

APIAction(
url: url,//Replace this with the required url
method: APIRequestTypeConstants.post,//replace this with the type of method
dataKey: "cometchatData",//replace this with the key , if you want to replace the key oin which all the data for form will be sent
headers: header,//set the header for the request
payload: payload//set the payloaf forn the request
)

URL Navigation

URLNavigationAction( url: "https://www.cometchat.com/") // Replace this with the required url