Customize dialing out
The code on this page works with either the default UI or the custom UI.
If your account supports the Dial-Out feature, you can also customize the Dial-Out feature's behavior.
ZoomSDK zoomSDK = ZoomSDK.getInstance();
MeetingService meetingService = zoomSDK.getMeetingService();
if (arg0.getId() == R.id.btnCall) {
if (meetingService != null) {
String number = mEdtPhoneNumber.getText().toString().trim();
meetingService.dialOutUser(number, null, true);
}
} else if (arg0.getId() == R.id.btnHangUp) {
meetingService.cancelDialOut(true);
}
To get the dial-out status, implement the onDialOutStatusChanged method.
onDialOutStatusChanged()
@Override
public void onDialOutStatusChanged(int status) {
Log.d(TAG, "onDialOutStatusChanged status = " + status);
if (status == DialOutStatus.DIALOUT_STATUS_JOIN_SUC) {
finish();
}
updateButtons(status);
}