Skip to content

CallViberRequest

Lejla Solak edited this page Sep 22, 2023 · 3 revisions

extends CallRequest



CallViberRequest(token, context, from, destination, viberCallEventListener)

Description

Creates an instance of CallViberRequest required for making an outgoing Viber call via callViber method.

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 - Phone number to call.
  • from: String - Call identifier which has to be a Viber Voice number.
  • viberCallEventListener: ViberCallEventListener - Event listener used for receiving call events.

Returns

Example

CallViberRequest callViberRequest = new CallViberRequest(obtainToken(), getApplicationContext(), "41793026727", "41727620397", this);



getFrom()

Description

Getter for the from field.

Arguments

  • none

Returns

  • String - Value of the from field.

Example

CallViberRequest callViberRequest = new CallViberRequest(obtainToken(), getApplicationContext(), "41793026727", "41727620397", this);
String from = callViberRequest.getFrom();



getViberCallEventListener()

Description

Getter for the viberCallEventListener field.

Arguments

  • none

Returns

Example

CallViberRequest callViberRequest = new CallViberRequest(obtainToken(), getApplicationContext(), "41793026727", "41727620397", this);
ViberCallEventListener viberCallEventListener = callViberRequest.getViberCallEventListener();

Tutorials

Migration guides

Reference documentation

Clone this wiki locally