Help Center/ Meeting/ Client SDK Reference/ Android SDK/ API Reference/ Basic Settings/ Customizing the Ringing and Vibration for Incoming Meetings
Updated on 2024-07-30 GMT+08:00

Customizing the Ringing and Vibration for Incoming Meetings

1
HWMSdk.getOpenApi.changeInComingNotice(boolean isVibrate, boolean isRing, HwmCallback<Boolean> callback);

API Description

This API is used to modify the incoming meeting notification mode.

Precautions

This API takes effect only after you log in and before you receive an incoming meeting.

Method Definition

1
2
3
4
5
6
    /**
     * Changes the incoming meeting notification mode.
     * @param isVibrate Indicates whether to enable vibration.
     * @param isRing Indicates whether to enable ringing.
     */
    void changeInComingNotice(boolean isVibrate, boolean isRing, HwmCallback<Boolean> callback);

Parameter Description

Table 1 Parameter description

Parameter

Mandatory

Type

Description

isVibrate

Yes

boolean

Whether to enable vibration.

isRing

Yes

boolean

Whether to enable ringing.

callback

Yes

HwmCallback

Callback of setting the incoming meeting notification mode.

Return Values

None

Sample Code
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
HWMSdk.getOpenApi(HWMBizSdk.getApplication()).changeInComingNotice(isOpenVibrate, isOpenRing, new HwmCallback<Boolean>() {
            @Override
            public void onFailed(int retCode, String desc) {
                dismissLoading();
                dismiss();
                if (!TextUtils.isEmpty(desc)) {
                    DemoUtil.showToast(desc);
                } else {
                    DemoUtil.showToast("Failed to modify the incoming meeting notification mode.");
                }
            }

            @Override
            public void onSuccess(Boolean aBoolean) {
                dismissLoading();
                dismiss();
            }
        });