-
Notifications
You must be signed in to change notification settings - Fork 3
CallApplicationRequest
Kenan Genjac edited this page Feb 23, 2023
·
5 revisions
init(_ token: String, applicationId: String, applicationCallEventListener: ApplicationCallEventListener)
token: String
applicationId: String
applicationCallEventListener: ApplicationCallEventListener
Creates a new instance of CallApplicationRequest
.
-
token
:String
- Authentication token generated by client's app via Infobip's HTTP /webrtc/1/token endpoint. -
applicationId
:String
- Represents the application ID of your backend application that's set up earlier through the Calls API. -
applicationCallEventListener
:ApplicationCallEventListener
- Interface with event methods that should be implemented, method per application call event to be handled.
N/A
let token = obtainToken()
let callApplicationRequest = CallApplicationRequest(token, applicationId: "45g2gql9ay4a2blu55uk1628", applicationCallEventListener: self)
Getter for the token
field.
-
token
:String
- Represents authentication token generated by client's app via Infobip's HTTP /webrtc/1/token endpoint.
Getter for the applicationId
field.
-
applicationId
:String
- Represents the application ID of your backend application that's set up earlier through the Calls API or the applicationId corresponding to the value of chosenInfobipApplication
.
Getter for the applicationCallEventListener
field.
-
ApplicationCallEventListener
- Value of theapplicationCallEventListener
field representing the event handler for application call events.