온라인 상태
Description
From version v0.1.3, TUIKit supports displaying user online status in the conversation list and contact list.
Note:
1. This feature is only supported by the premium edition. Please purchase the premium edition to use it.
2. Please enable the user status switch in the Chat Console. Ensure the switch is turned on before use.
Display Effect
Conversation List
Enable "Show User Online Status" | Disable "Show User Online Status" |
| |
Contacts List
Enable "Show User Online Status" | Disable "Show User Online Status" |
| |
Feature Overview
When initializing TUIKit, config
isShowOnlineStatus
in TIMUIKitConfig
to enable this feature.final CoreServicesImpl _coreInstance = TIMUIKitCore.getInstance();_coreInstance.init(config: const TIMUIKitConfig(isShowOnlineStatus: true or false, // Add this line// ... other TUIKit global configurations),// ... other launch configurations);
This configuration is the master switch for subsequent configurations. Please turn it on before proceeding to enable the online status on the subsequent pages.
Conversation List User Online Status
TIMUIKitConversation provides the conversation list feature.
At the top level of TIMUIKitConversation, a "User Online Status" feature toggle isShowOnlineStatus is provided. Its type is boolean and the default value is
true
.TIMUIKitConversation(isShowOnlineStatus: true or false,// ... other TIMUIKitConversation configurations)
Contact List User Online Status
TIMUIKitContact provides the contact list feature.
At the top level of TIMUIKitContact, a "User Online Status" feature toggle isShowOnlineStatus is provided. Its type is boolean and the default value is
true
.TIMUIKitContact(isShowOnlineStatus: true or false,// ... other TIMUIKitContact configurations)
FAQs
When calling the Subscription/Unsubscription API, the interface prompts "Error Code 72001".
Error Code 72001 indicates that the corresponding capability is not enabled in the Console. Please log in to the Chat Console to enable the corresponding feature toggle.
Error: The package bundle does not support the use of this interface. Please upgrade to the advanced package.
This feature is only supported in the premium edition. The error message indicates that your current package does not support this capability. Please log in to the Chat Purchase Page to activate the Premium Edition and experience it.
Contact Us
If you have any questions during the access and usage process, please contact us through the following methods.