Relay.Calling.TapAction
This object returned from tapAsync method that represents the running media tapping active on a call.
Methods
getControlId
Return the UUID to identify the action.
Parameters
None
Returns
string - UUID to identify the action.
Examples
Start tapping audio and print the controlId.
getResult
Returns the final result of this tapping action.
Parameters
None
Returns
Relay.Calling.TapResult - Final tap result.
Examples
Start tapping audio and grab the result when it’s completed.
getPayload
Return the payload sent to Relay to initiate the request. Useful to inspect what you sent to perform this action.
Parameters
None
Returns
Object - Payload sent to Relay.
Examples
Start tapping audio and print out the payload.
getState
Return the current tapping state.
Parameters
None
Returns
string - The current state.
Examples
Start tapping audio and print the state.
isCompleted
Return true if tapping has finished, false otherwise.
Parameters
None
Returns
Boolean - True/False accordingly to the state.
Examples
Start tapping audio and check if it has finished.
getSourceDevice
Return the source device sending media.
Parameters
None
Returns
Object - The source device.
Examples
Start tapping audio and then inspect the source device.
stop
Stop the action immediately.
Parameters
None
Returns
React\Promise\Promise - Promise object that will be fulfilled with a Relay.Calling.StopResult object.
Examples
Start tapping audio and then stop the action.