Skip to main content

SignalWire.Relay.Calling.DetectAction

This object returned from DetectAsync method that represents a detection operation that is currently active on a call.

Properties

PropertyTypeDescription
ControlIDstringThe identifier used to control the operation.
ResultSignalWire.Relay.Calling.DetectResultFinal result of detection.
CompletedboolWhether the detect operation has completed.
PayloadSignalWire.Relay.Calling.CallDetectPayload sent to Detect to start the detect operation.

Methods

Stop

Stop the action immediately.

Parameters

None

Returns

SignalWire.Relay.Calling.StopResult - The result object to interact with.

Examples

Start a detector and stop it after 5 seconds.

DetectAction actionDetect = call.DetectAsync(
new CallDetect
{
Type = CallDetect.DetectType.machine,
Parameters = new CallDetect.MachineParams
{
}
});

Thread.Sleep(5000);

StopResult resultStop = actionDetect.Stop();