Customizing Service Message Notifications
You can configure the API for processing service notification messages in OpenSDKConfig to listen to meeting information 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.
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()); |
Notifications for Individual Role Changes
API Description
A notification is sent when the host role is changed.
Method Definition
1 2 3 4 5 |
/** * Callback invoked when the host role is changed. * @param isSelfChairMan */ void onIsSelfChairManChanged(boolean isSelfChairMan); |
Parameter Description
Return Values
None
Notifications for Meeting List Changes
API Description
A notification is sent when the meeting list is changed.
Method Definition
1 2 3 4 5 6 |
/** * Callback invoked when the meeting list is changed. * * @param hwmConfList */ void onConfListChanged(List<ConfBaseInfo> hwmConfList); |
Parameter Description
Notifications for Changes on Meeting Recording Permissions
API Description
A notification is sent when the meeting recording permissions are changed.
Method Definition
1 2 3 4 5 6 |
/** * Callback invoked when the meeting recording permissions are changed. * * @param hasPermission */ void onRecordPermissionChanged(boolean hasPermission); |
Parameter Description
Parameter |
Type |
Description |
---|---|---|
hasPermission |
boolean |
Whether recording is supported. |
Return Values
None
Notifications for Changes of Permissions of Sending SMS Messages for Scheduled Meetings
API Description
A notification is sent when the permissions of sending SMS messages for scheduled meetings are changed.
Method Definition
1 2 3 4 5 6 |
/** * Callback invoked when the permissions of sending SMS messages for scheduled meetings are changed. * * @param hasPermission */ void onBookConfSmsPermissionChanged(boolean hasPermission); |
Parameter Description
Parameter |
Type |
Description |
---|---|---|
hasPermission |
boolean |
Whether a user has the permissions required to send SMS messages for scheduled meetings. |
Return Values
None
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot