IncomingCall interface
Represents an incoming call.
- Extends
Properties
info | Get information about this Call. |
Inherited Properties
call |
Containing code/subCode indicating how call ended. |
caller |
Identifier of the caller. |
custom |
Options sent as custom context. |
id | Get the unique Id for this Call. |
kind | Get the kind of incoming call oject. |
Methods
accept(Accept |
Accept this incoming Call. |
Inherited Methods
off("call |
Unsubscribe function for onCallEnded event. |
on("call |
Subscribe function for onCallEnded event. |
reject() | Reject this incoming Call. |
Property Details
info
Inherited Property Details
callEndReason
Containing code/subCode indicating how call ended.
callEndReason?: CallEndReason
Property Value
Inherited From IncomingCallCommon.callEndReason
callerInfo
Identifier of the caller.
callerInfo: CallerInfo
Property Value
Inherited From IncomingCallCommon.callerInfo
customContext
Options sent as custom context.
customContext?: CustomContext
Property Value
Inherited From IncomingCallCommon.customContext
id
Get the unique Id for this Call.
id: string
Property Value
string
Inherited From IncomingCallCommon.id
kind
Get the kind of incoming call oject.
kind: IncomingCallKind
Property Value
Inherited From IncomingCallCommon.kind
Method Details
accept(AcceptCallOptions)
Accept this incoming Call.
function accept(options?: AcceptCallOptions): Promise<Call>
Parameters
- options
- AcceptCallOptions
accept options.
Returns
Promise<Call>
The Call object associated with the accepted call.
Inherited Method Details
off("callEnded", CallEndedEvent)
Unsubscribe function for onCallEnded event.
function off(event: "callEnded", listener: CallEndedEvent)
Parameters
- event
-
"callEnded"
event name.
- listener
- CallEndedEvent
callback fn that was used to subscribe to this event.
Inherited From IncomingCallCommon.off
on("callEnded", CallEndedEvent)
Subscribe function for onCallEnded event.
function on(event: "callEnded", listener: CallEndedEvent)
Parameters
- event
-
"callEnded"
event name.
- listener
- CallEndedEvent
callback fn that was used to subscribe to this event.
Inherited From IncomingCallCommon.on
reject()
Reject this incoming Call.
function reject(): Promise<void>
Returns
Promise<void>
Inherited From IncomingCallCommon.reject