CallDetect
Represents a current or past detecting session in a call. You can obtain instances of this class by starting a Detect session with one of the following methods:
Properties
id
The unique id for this detecting session.
Syntax: CallDetect.id()
Returns: string
type
The type of this detecting session.
Syntax: CallDetect.type()
Returns: "machine" | "digit" | "fax"| "beep"
result
The result of the detecting session.
Syntax: CallDetect.result()
Returns:
Methods
ended
- ended():
Promise<CallDetect>- See CallDetectResult for more details.
Returns a promise which will get resolved only after the detecting session is completed.
Returns
Promise<CallDetect> - See CallDetectResult for more details.
Example
stop
- stop():
Promise<CallDetect>- See CallDetectResult for more details.
Stops the detect.
Returns
Promise<CallDetect> - See CallDetectResult for more details.
Example
waitForResult
- waitForResult():
Promise<CallDetect>- See CallDetectResult for more details.
Returns a promise which will get resolved only after the detecting session is completed.
This method is deprecated. See ended instead.