-
Notifications
You must be signed in to change notification settings - Fork 2
IncomingApplicationCallEvent
Ajša Terko edited this page Feb 15, 2024
·
4 revisions
constructor(incomingCall: IncomingApplicationCall, customData: CustomDataincomingCall(): IncomingApplicationCallcustomData(): 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-valuestringpairs.
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 thecustomDatafield, defined as an object of key-valuestringpairs, 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)}`);
});