TencentCloudChatCoreController class

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addGlobalCallback({required TencentCloudChatCallbacks callbacks}) → void
getThemeData({required BuildContext context, Brightness? brightness, bool needTextTheme = true, bool needColorScheme = true}) ThemeData
Returns a ThemeData instance based on the current brightness and configuration.
hasConversationUnreadCount() → dynamic
Get the current conversation total unread count
initGlobalAdapterInBuildPhase(BuildContext context) → void
initUIKit({BuildContext? context, required TencentCloudChatInitOptions options, required TencentCloudChatInitComponentsRelated components, TencentCloudChatConfig? config, TencentCloudChatCallbacks? callbacks, List<TencentCloudChatPluginItem>? plugins}) Future<bool>
Initializes the Tencent Cloud Chat with the given configuration.
logout() Future<bool>
Log out the current user from the Tencent Cloud Chat service. If the logout is unsuccessful, the UIKit will not be reset.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeGlobalCallback({TencentCloudChatCallbacks? callbacks}) → void
resetUIKit({bool shouldLogout = false, bool shouldUnInitSDK = true}) Future<bool>
This method is recommended for resetting the UIKit instead of using logout. It is suitable for situations like user logout, account switching, or any other scenarios that require clearing the data in the UIKit. If you need to actively logout from Chat, set shouldLogout to true. If it's a passive scenario, for instance, if the current user has been kicked offline, set shouldLogout to false. This will only clear the data within UIKit without executing the logout method again.
setBrightnessMode(Brightness value) → dynamic
Sets the brightness mode
setThemeColors({required Brightness brightness, required TencentCloudChatThemeColors themeColors}) → void
Sets the theme colors for the specified brightness.
toggleBrightnessMode({Brightness? brightness}) → void
Toggles the brightness mode between light and dark.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

hasInitialized bool
getter/setter pair