-
Notifications
You must be signed in to change notification settings - Fork 2
CallViberRequest
Lejla Solak edited this page Sep 22, 2023
·
3 revisions
extends
CallRequest
CallViberRequest(String token, Context context, String from, String destination, ViberCallEventListener viberCallEventListener)
String getFrom()
ViberCallEventListener getViberCallEventListener()
Creates an instance of CallViberRequest
required for making an outgoing Viber call via callViber
method.
-
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
- 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.
-
CallViberRequest
- Instance of theCallViberRequest
.
CallViberRequest callViberRequest = new CallViberRequest(obtainToken(), getApplicationContext(), "41793026727", "41727620397", this);
Getter for the from
field.
none
-
String
- Value of thefrom
field.
CallViberRequest callViberRequest = new CallViberRequest(obtainToken(), getApplicationContext(), "41793026727", "41727620397", this);
String from = callViberRequest.getFrom();
Getter for the viberCallEventListener
field.
none
-
ViberCallEventListener
- Value of theviberCallEventListener
field.
CallViberRequest callViberRequest = new CallViberRequest(obtainToken(), getApplicationContext(), "41793026727", "41727620397", this);
ViberCallEventListener viberCallEventListener = callViberRequest.getViberCallEventListener();