-
Notifications
You must be signed in to change notification settings - Fork 0
IncomingApplicationCallEvent
Ajša Terko edited this page Feb 15, 2024
·
4 revisions
constructor(incomingCall: IncomingApplicationCall, customData: CustomData
incomingCall(): IncomingApplicationCall
customData(): CustomData
Creates a new instance of IncomingApplicationCallEvent
.
-
incomingCall
:IncomingApplicationCall
- The incoming call object for this event. -
customData
:CustomData
- Custom data type that is defined as an object of key-valuestring
pairs.
let incomingApplicationCallEvent = new IncomingApplicationCallEvent(incomingCall, {'city': 'New York'});
Getter for the incomingCall
field.
none
-
IncomingApplicationCall
- Represents the incoming call object for this event.
let infobipRTC = createInfobipRtc('2e29c3a0-730a-4526-93ce-cda44556dab5', {debug: true});
infobipRTC.on('incoming-application-call', (incomingApplicationCallEvent) => {
incomingApplicationCallEvent.incomingCall.accept();
});
Getter for the customData
field.
none
-
CustomData
- Value of thecustomData
field, defined as an object of key-valuestring
pairs, containing custom additional information.
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)}`);
});