-
Notifications
You must be signed in to change notification settings - Fork 2
CallPhoneRequest
Lejla Solak edited this page Sep 22, 2023
·
3 revisions
extends
CallRequest
CallPhoneRequest(String token, Context context, String destination, PhoneCallEventListener phoneCallEventListener)
PhoneCallEventListener getPhoneCallEventListener()
Creates an instance of CallPhoneRequest
required for making an outgoing phone call via
callPhone
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. -
phoneCallEventListener
:PhoneCallEventListener
- Event listener used for receiving call events.
-
CallPhoneRequest
- Instance of theCallPhoneRequest
.
CallPhoneRequest callPhoneRequest = new CallPhoneRequest(obtainToken(), getApplicationContext(), "41793026727", this);
Getter for the phoneCallEventListener
field.
none
-
PhoneCallEventListener
- Value of thephoneCallEventListener
field.
CallPhoneRequest callPhoneRequest = new CallPhoneRequest(obtainToken(), getApplicationContext(), "41793026727", this);
PhoneCallEventListener phoneCallEventListener = callPhoneRequest.getPhoneCallEventListener();