CallAgentCommon interface
CallAgent common interface.
Properties
connection |
Get the connection state. |
kind | Get the kind of call agent object. |
Methods
dispose() | Dispose of this Call Agent |
feature<TFeature>(Call |
Retrieves an initialized and memoized Feature object with extended API. Check the object Features.* for all available extended call agent features in this package. |
handle |
Handles a push notification. |
Property Details
connectionState
kind
Method Details
dispose()
Dispose of this Call Agent
function dispose(): Promise<void>
Returns
Promise<void>
feature<TFeature>(CallAgentFeatureFactory<TFeature>)
Note
This API is in Beta and provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Retrieves an initialized and memoized Feature object with extended API. Check the object Features.* for all available extended call agent features in this package.
function feature<TFeature>(factory: CallAgentFeatureFactory<TFeature>): TFeature
Parameters
- factory
-
CallAgentFeatureFactory<TFeature>
The factory for the call agent feature constructor that provides an extended API.
Returns
TFeature
handlePushNotification(IncomingCallPushNotificationData)
Note
This API is in Beta and provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Handles a push notification.
function handlePushNotification(data: IncomingCallPushNotificationData): Promise<void>
Parameters
Push notification data
Returns
Promise<void>