Updated on 2024-07-30 GMT+08:00

Service Message Notification

You can configure the API for processing service notification messages in OpenSDKConfig to listen to meeting details changes.

Application Scenarios

Listening to meeting list changes

Listening to your host role change in a meeting

Listening to your recording permission change in a meeting

Listening to changes of the permission to send SMS messages in a meeting scheduled by you

Precautions

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

Sample Code
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
public class CustomBizNotficationHandle implements BizNotificationHandler {

    private static CopyOnWriteArrayList<IConfListUpdate> confListUpdates = new CopyOnWriteArrayList<>();

    public static void registerConfListUpdateListener(IConfListUpdate confListUpdate){
        confListUpdates.add(confListUpdate);
    }

    public static void removeConfListUpdateListener(IConfListUpdate confListUpdate){
        confListUpdates.remove(confListUpdate);
    }

    // Callback invoked upon a meeting list update
    @Override
    public void onConfListChanged(List<ConfBaseInfo> list) {
        for (IConfListUpdate listener : confListUpdates) {
            try {
                listener.onConfListUpdateNotify(list);
            } catch (RuntimeException e) {
                Log.e("onConfListChanged", e.toString());
            }
        }
    }

    // Callback invoked upon the change of the host role
    @Override
    public void onIsSelfChairManChanged(boolean isChairman) {

    }

    // Callback invoked upon the change of the meeting recording permissions
    @Override
    public void onRecordPermissionChanged(boolean hasPermission) {

    }

    // Callback invoked upon the change of the permissions of sending SMS messages for scheduled meetings
    @Override
    public void onBookConfSmsPermissionChanged(boolean hasPermission) {

    }

    // Whether AI recording is supported
    @Override
    public void onAIConfRecordStateChanged(int state) {
    }

    // Whether you have the cloud recording permission
    @Override
    public void onRecordTypeChanged(int type) {
    }

    // Incoming meeting call information
    @Override
    public void onConfIncomingNotify(ConfIncomingInfo confIncomingInfo) {
    }
}
sdkConfig.setBizNotificationHandler(new CustomBizNotficationHandle());