SignalWire.Relay.Calling.DetectAction
This object returned from DetectAsync
method that represents a detection operation that is currently active on a call.
Properties
Property | Type | Description |
---|---|---|
ControlID | string | The identifier used to control the operation. |
Result | SignalWire.Relay.Calling.DetectResult | Final result of detection. |
Completed | bool | Whether the detect operation has completed. |
Payload | SignalWire.Relay.Calling.CallDetect | Payload 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();