Skip to content

IncomingApplicationCallEvent

Ajša Terko edited this page Feb 15, 2024 · 4 revisions



constructor(incomingCall, customData)

Description

Creates a new instance of IncomingApplicationCallEvent.

Arguments

  • incomingCall: IncomingApplicationCall - The incoming call object for this event.
  • customData: CustomData - Custom data type that is defined as an object of key-value string pairs.

Example

let incomingApplicationCallEvent = new IncomingApplicationCallEvent(incomingCall, {'city': 'New York'});



incomingCall()

Description

Getter for the incomingCall field.

Arguments

  • none

Returns

Example

let infobipRTC = createInfobipRtc('2e29c3a0-730a-4526-93ce-cda44556dab5', {debug: true});
infobipRTC.on('incoming-application-call', (incomingApplicationCallEvent) => {
    incomingApplicationCallEvent.incomingCall.accept();
});



customData()

Description

Getter for the customData field.

Arguments

  • none

Returns

  • CustomData - Value of the customData field, defined as an object of key-value string pairs, containing custom additional information.

Example

let infobipRTC = createInfobipRtc('2e29c3a0-730a-4526-93ce-cda44556dab5', {debug: true});
infobipRTC.on('incoming-application-call', function (incomingApplicationCallEvent) {
    console.log(`Incoming application call custom data: ${JSON.stringify(incomingApplicationCallEvent.customData)}`);
});

Tutorials

Migration guides

Reference documentation

Clone this wiki locally