DetectAction
Relay.Calling.DetectAction
This object returned from one of asynchronous detect methods that represents a running detector on the call.
Methods-submenu
GetResult
Returns the final detector result.
Parameters
None
Returns
DetectResult
Relay.Calling.DetectResult - Final detector result.
Examples
Trying detecting DTMF and grab the result when it’s completed.
GetCompleted
Return true if detector has finished, false otherwise.
Parameters
None
Returns
Boolean - True/False accordingly to the state.
Examples
Trying detecting DTMF and check if it has finished.
Stop
Stop the action immediately.
Parameters
None
Returns
StopResult
Examples
Trying detecting a machine and then stop the action.
GetControlID
Return the UUID to identify the action.
Parameters
None
Returns
string - UUID to identify the action.
Examples
Start a detector and print the controlId.