-
Notifications
You must be signed in to change notification settings - Fork 2
CallPhoneRequest
Adnan Mujagić edited this page Jun 11, 2024
·
3 revisions
extends CallRequest
init(_ token: String, destination: String, phoneCallEventListener: PhoneCallEventListener)phoneCallEventListener: PhoneCallEventListener
Creates an instance of CallPhoneRequest required for making an outgoing phone call
via callPhone method.
-
token:String- Authentication token generated by client's app via Infobip's HTTP /webrtc/1/token endpoint. -
destination:String- Phone number to call. -
phoneCallEventListener:PhoneCallEventListener- Event listener used for receiving call events.
-
CallPhoneRequest- Instance of theCallPhoneRequest.
let token = obtainToken()
let callPhoneRequest = CallPhoneRequest(token, destination: "41793026727", phoneCallEventListener: self)Getter for the phoneCallEventListener field.
-
PhoneCallEventListener- Value of thephoneCallEventListenerfield representing the event handler for phone call events.