PlayAction
Relay.Calling.PlayAction
This object returned from one of asynchronous play methods that represents a playing currently active on a call.
Methods-submenu
GetResult
Returns the final result of the playing.
Parameters
None
Returns
Relay.Calling.PlayResult - Final result of the playing.
Examples
Start the play and grab the result when it’s completed.
GetState
Return the current state of the playing.
Parameters
None
Returns
string - Current state of the playing.
Examples
Start the play and print the state.
GetCompleted
Return true if the playing has finished, false otherwise.
Parameters
None
Returns
Boolean - True/False accordingly to the state.
Examples
Start the play and check if it has finished.
GetControlID
Return the UUID to identify the action.
Parameters
None
Returns
string - UUID to identify the action.
Examples
Start a Play Action and print the controlId.
Stop
Stop the action immediately.
Parameters
None
Returns
Examples
Start the play and stop it.