Help Center/ Meeting/ Client SDK Reference/ Android SDK/ Notification Reference/ Answering Policy Configuration of Incoming Calls
Updated on 2024-07-30 GMT+08:00

Answering Policy Configuration of Incoming Calls

Notification Description

You can customize the mode of automatically processing an incoming meeting call in OpenSDKConfig. By default, the answering screen is displayed for manual processing.

Application Scenarios

Answering a call directly when receiving a meeting invitation: answerTypeOnConfIncoming. HWMIncomingAnswerType.HWM_INCOMING_AUTO_ANSWER is returned.

Rejecting a call when receiving a meeting invitation: answerTypeOnConfIncoming. HWMIncomingAnswerType.HWM_IMCOMING_AUTO_DECLINE is returned.

Precautions

sdkConfig takes effect only when this configuration is passed during SDK initialization.

Sample Code

1
2
3
4
5
6
7
    sdkConfig.setInComingHandle(new IIncomingHandle() {
        @Override
        public HWMIncomingAnswerType answerTypeOnConfIncoming() {
            // Customize the incoming call processing mode for meeting invitations.
            return HWMIncomingAnswerType.HWM_IMCOMING_NORMAL;
        }
    });

Reference Returned Values

1
2
3
4
5
public enum HWMIncomingAnswerType {
    HWM_IMCOMING_NORMAL(0, "HWM_IMCOMING_NORMAL"),    // The default processing mode is used.
    HWM_IMCOMING_AUTO_DECLINE(1, "HWM_IMCOMING_AUTO_DECLINE"), // The call is automatically rejected.
    HWM_INCOMING_AUTO_ANSWER(2, "HWM_INCOMING_AUTO_ANSWER");  // The call is automatically answered.
}