Skip to content

CallPhoneRequest

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

extends CallRequest



CallPhoneRequest(token, context, destination, phoneCallEventListener)

Description

Creates an instance of CallPhoneRequest required for making an outgoing phone call via callPhone 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.
  • phoneCallEventListener: PhoneCallEventListener - Event listener used for receiving call events.

Returns

Example

CallPhoneRequest callPhoneRequest = new CallPhoneRequest(obtainToken(), getApplicationContext(), "41793026727", this);



getPhoneCallEventListener()

Description

Getter for the phoneCallEventListener field.

Arguments

  • none

Returns

Example

CallPhoneRequest callPhoneRequest = new CallPhoneRequest(obtainToken(), getApplicationContext(), "41793026727", this);
PhoneCallEventListener phoneCallEventListener = callPhoneRequest.getPhoneCallEventListener();

Tutorials

Migration guides

Reference documentation

Clone this wiki locally