please select
  • UIKit
  • SDK
  • Server APIs
Chat/
UIKit/
Flutter/
Features/
UIKit
  • Overview
  • Run Demo
  • Installation
    • integrated
    • Only Chat
  • Features
    • Local Search
    • Offline Push
    • Online Status
    • Typing Status
    • Message Read Receipt
    • Message Reactions
    • Internationalization
    • Adding Custom Messages
    • Emoji & Stickers
  • Customization
    • Modifying UI Themes
    • Setting UI Styles
  • Changelog
  • Guideline for Beginners
  • Console Guide
    • Creating and Upgrading an Application
    • Basic Configuration
    • Feature Configuration
    • Account Management
    • Group Management
    • Webhook Configuration
  • Product Introduction
    • Message Management
      • One-to-One Message
      • Message Storage
      • Offline Push
      • Group Message
      • Message Formats
    • Account System
      • Login Authentication
      • Online Status Management
    • Group Related
      • Group System
      • Group Management
    • User Profile and Relationship Chain
      • Profile Management
      • Relationship Chain Management
  • Purchase Guide
    • Billing Overview
    • Pricing
  • Error Codes

Online Status

Description

Showing the online status of the other users, on both conversation list and contacts list, are supported since the version of 0.1.3 of Flutter TUIKit.
Caution:
This module works with Premium Edition only.

Demonstrations

Conversation list

Turn on "Online Status"
Turn off "Online Status"



Contacts list

Turn on "Online Status"
Turn off "Online Status"



Using this module

Config the online status configuration field isShowOnlineStatus in TUIKit global TIMUIKitConfig when initializing TUIKit to control whether this function is enabled or disabled.
final CoreServicesImpl _coreInstance = TIMUIKitCore.getInstance();

_coreInstance.init(
config: const TIMUIKitConfig(
isShowOnlineStatus: true or false, // Add this line
// ... Other configurations
),
// ... Other configurations
);
This field is the main switch of the following fields, while all the online status will be turned off if this field is false and the following field can be specified separately if this field is true.

Conversation list

TIMUIKitConversation is the widget of conversation list.
A field of the "user online status" function switch isShowOnlineStatus been provided at TIMUIKitConversation, its type is boolean, and the default is true.
TIMUIKitConversation(
isShowOnlineStatus: true or false,
// ... Other configurations
)

Contacts list

TIMUIKitContact is the widget of contacts list.
A field of the "user online status" function switch isShowOnlineStatus been provided at TIMUIKitContact, its type is boolean, and the default is true.
TIMUIKitContact(
isShowOnlineStatus: true or false,
// ... Other configurations

Contact us

If there's anything unclear or you have more ideas, feel free to contact us!