callAction

fun callAction(objectId: ObjectID, actionName: String, params: Map<String, Any> = emptyMap()): SwitchboardResult<String>

Calls an action on the object with the specified object ID.

Return

Result containing the action result or error

Parameters

objectId

ID of the object to call action on

actionName

Name of the action to call

params

Parameters for the action (optional)