Customize dialing out
The code on this page works with either the default UI or the custom UI.
Some accounts support the Dial-Out feature. If you would like to customize the behavior of the Dial-Out feature, you can do the following:
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);
}
You can get the dial-out status by implementing 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);
}