Skip to content

CallRequest

Lejla Solak edited this page Sep 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

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



getToken()

Description

Getter for the token field.

Arguments

  • none

Returns

  • String - Value of the token field.

Example

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



getContext()

Description

Getter for the context field.

Arguments

  • none

Returns

  • Context - Value of the context field.

Example

CallRequest callRequest = new CallRequest(obtainToken(), getApplicationContext(), "Alice");
Context context = callRequest.getContext();



getDestination()

Description

Getter for the destination field.

Arguments

  • none

Returns

  • String - Value of the destination field.

Example

CallRequest callRequest = new CallRequest(obtainToken(), getApplicationContext(), "Alice");
String destination = callRequest.getDestination();

Tutorials

Migration guides

Reference documentation

Clone this wiki locally