EasyCallControlFactory.createSingleCallControl() method

Creates a device with single-call-control functionality.

Signature

createSingleCallControl(device: IDevice, initialState?: ISingleInitialState): Promise<ISingleCallControl>;

Parameters

Parameter Type Description
device IDevice an SDK device from which the call-control device will be constructed.
initialState ISingleInitialState Optional parameter: sets the initial state of the created object. Use it when handling device changes.

Returns

Promise<ISingleCallControl>

A Promise which emits a new ISingleCallControl.

Remarks

This is a simple interface only containing the basic functionality for handling easy call control.

If you wish to handle multiple calls and being able to set a call on hold, we advise you to use the IMultiCallControl interface instead - see method createMultiCallControl.