-
Notifications
You must be signed in to change notification settings - Fork 2
CallRequest
Lejla Solak edited this page Sep 22, 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
.
CallRequest callRequest = new CallRequest(obtainToken(), getApplicationContext(), "Alice");
Getter for the token
field.
none
-
String
- Value of thetoken
field.
CallRequest callRequest = new CallRequest(obtainToken(), getApplicationContext(), "Alice");
String token = callRequest.getToken();
Getter for the context
field.
none
-
Context
- Value of thecontext
field.
CallRequest callRequest = new CallRequest(obtainToken(), getApplicationContext(), "Alice");
Context context = callRequest.getContext();
Getter for the destination
field.
none
-
String
- Value of thedestination
field.
CallRequest callRequest = new CallRequest(obtainToken(), getApplicationContext(), "Alice");
String destination = callRequest.getDestination();