Skip to content

CallApplicationRequest

Kenan Genjac edited this page Feb 23, 2023 · 5 revisions



init(token, applicationId, applicationCallEventListener)

Description

Creates a new instance of CallApplicationRequest.

Arguments

  • 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.

Returns

  • N/A

Example

let token = obtainToken()
let callApplicationRequest = CallApplicationRequest(token, applicationId: "45g2gql9ay4a2blu55uk1628", applicationCallEventListener: self)



token

Description

Getter for the token field.

Returns



applicationId

Description

Getter for the applicationId field.

Returns

  • 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 chosen InfobipApplication.



applicationCallEventListener

Description

Getter for the applicationCallEventListener field.

Returns

  • ApplicationCallEventListener - Value of the applicationCallEventListener field representing the event handler for application call events.

Tutorials

Migration guides

Reference documentation

Clone this wiki locally