Skip to content

CallWebrtcRequest

Lejla Solak edited this page Sep 22, 2023 · 3 revisions

extends CallRequest



CallWebrtcRequest(token, context, destination, webrtcCallEventListener)

Description

Creates an instance of CallWebrtcRequest required for making an outgoing WebRTC call via callWebrtc method.

Arguments

  • token: String - Authentication token generated by client's app via Infobip's HTTP /webrtc/1/token endpoint.
  • context: Context - Instance of the android.content.Context class.
  • destination: String - Phone number to call.
  • webrtcCallEventListener: WebrtcCallEventListener - Event listener used for receiving call events.

Returns

Example

CallWebrtcRequest callWebrtcRequest = new CallWebrtcRequest(obtainToken(), getApplicationContext(), "Alice", this)



getWebrtcCallEventListener()

Description

Getter for the webrtcCallEventListener field.

Arguments

  • none

Returns

Example

CallWebrtcRequest callWebrtcRequest = new CallWebrtcRequest(obtainToken(), getApplicationContext(), "Alice", this)
WebrtcCallEventListener webrtcCallEventListener = callWebrtcRequest.getWebrtcCallEventListener();

Tutorials

Migration guides

Reference documentation

Clone this wiki locally