-
Notifications
You must be signed in to change notification settings - Fork 2
CallRequest
Lejla Solak edited this page Sep 5, 2023
·
5 revisions
CallRequest(String token, Context context, String destination
String getToken()
Context getContext()
String getDestination()
Creates a new instance of CallRequest
.
-
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
- Remote endpoint's identity or phone number to call.
-
CallRequest
- Instance of theCallRequest
.
String token = obtainToken();
CallRequest callRequest = new CallRequest(token, getApplicationContext(), "Alice")
Getter for token
field.
none
-
String
- Value oftoken
field.
String token = obtainToken();
CallRequest callRequest = new CallRequest(token, getApplicationContext(), "Alice")
Log.d("WebRTC", "Token: " + callRequest.getToken());
Getter for context
field.
none
-
Context
- Value ofcontext
field.
String token = obtainToken();
CallRequest callRequest = new CallRequest(token, getApplicationContext(), "Alice")
Log.d("WebRTC", "Context: " + callRequest.getContext());
Getter for destination
field.
none
-
String
- Value ofdestination
field.
String token = obtainToken();
CallRequest callRequest = new CallRequest(token, getApplicationContext(), "Alice")
Log.d("WebRTC", "Destination: " + callRequest.getDestination());