Skip to content

CallRequest

Ajša Terko edited this page Feb 22, 2023 · 5 revisions



CallRequest(token, context, destination)

Description

Creates a new instance of CallRequest.

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 - Remote endpoint's identity or phone number to call.

Returns

Example

String token = obtainToken();
CallRequest callRequest = new CallRequest(token, getApplicationContext(), "Alice")



getToken()

Description

Getter for token field.

Arguments

  • none

Returns

  • String - Value of token field.

Example

String token = obtainToken();
CallRequest callRequest = new CallRequest(token, getApplicationContext(), "Alice")
Log.d("WebRTC", "Token: " + callRequest.getToken());



getContext()

Description

Getter for context field.

Arguments

  • none

Returns

  • Context - Value of context field.

Example

String token = obtainToken();
CallRequest callRequest = new CallRequest(token, getApplicationContext(), "Alice")
Log.d("WebRTC", "Context: " + callRequest.getContext());



getDestination()

Description

Getter for destination field.

Arguments

  • none

Returns

  • String - Value of destination field.

Example

String token = obtainToken();
CallRequest callRequest = new CallRequest(token, getApplicationContext(), "Alice")
Log.d("WebRTC", "Destination: " + callRequest.getDestination());

Tutorials

Migration guides

Reference documentation

Clone this wiki locally