-
Notifications
You must be signed in to change notification settings - Fork 2
CallWebrtcRequest
Lejla Solak edited this page Sep 22, 2023
·
3 revisions
extends
CallRequest
CallWebrtcRequest(String token, Context context, String destination, WebrtcCallEventListener webrtcCallEventListener)
WebrtcCallEventListener getWebrtcCallEventListener
Creates an instance of CallWebrtcRequest
required for making an outgoing WebRTC call via callWebrtc
method.
-
token
:String
- Authentication token generated by client's app via Infobip's HTTP /webrtc/1/token endpoint. -
context
:Context
- Instance of theandroid.content.Context
class. -
destination
:String
- Phone number to call. -
webrtcCallEventListener
:WebrtcCallEventListener
- Event listener used for receiving call events.
-
CallWebrtcRequest
- Instance of theCallWebrtcRequest
.
CallWebrtcRequest callWebrtcRequest = new CallWebrtcRequest(obtainToken(), getApplicationContext(), "Alice", this)
Getter for the webrtcCallEventListener
field.
none
-
WebrtcCallEventListener
- Value of thewebrtcCallEventListener
field.
CallWebrtcRequest callWebrtcRequest = new CallWebrtcRequest(obtainToken(), getApplicationContext(), "Alice", this)
WebrtcCallEventListener webrtcCallEventListener = callWebrtcRequest.getWebrtcCallEventListener();