• UIKit
  • SDK
  • 서버 API
Chat/
UIKit/
Android/
Features/
UIKit
  • 개요
  • Run Demo
  • 시작
  • 설치
    • TUIKit
    • TUIChat만
  • Build Basic Interfaces
    • Chat
    • Conversation List
    • Contact List
    • Add Contact
    • Create Group Chat
    • Video and Audio Call
  • Features
    • 반응
    • Quote
    • 읽음 확인
    • 사용자 온라인 상태
    • Translation
    • Voice to Text
    • 메시지 검색
  • 맞춤화
    • 메시지 맞춤화
    • 이모티콘과 스티커 맞춤화
  • 현지화
  • Changelog
  • Guideline for Beginners
  • 콘솔 안내
    • 애플리케이션 생성 및 업그레이드
    • 기본 구성
    • 기능 구성
    • 계정 관리
    • 그룹 관리
    • 콜백 구성
  • 제품 소개
    • 메시지 관리
      • 1대1 메시지
      • 메시지 저장
      • 오프라인 푸시
      • 그룹 메시지
      • 메시지 포맷
    • 계정 시스템
      • 로그인 인증
      • 온라인 상태 관리
    • 그룹 관련
      • 그룹 시스템
      • 그룹 관리
    • 사용자 정보 및 관계망
      • 정보 관리
      • 관계망 관리
  • 구매 가이드
    • 과금 개요
    • 가격
  • 에러코드
이 페이지는 현재 영어로만 제공되며 한국어 버전은 곧 제공될 예정입니다. 기다려 주셔서 감사드립니다.

사용자 온라인 상태

Description

TUIKit supports displaying user online status starting from version 6.5.2803.
When "Show User Online Status" is enabled, user online status will be displayed on each user's avatar in the chat list and contact list. A green circle indicates online; absence of the green circle indicates offline.
When "Show User Online Status" is disabled, user online status will not be displayed.
Note:
The "User Online Status" feature is only supported by the Premium Edition. Please make sure that the premium package is activated before using this feature.
The "User Online Status" feature requires turning on the user status switch in the Chat console. Please make sure that the switch is turned on before using this feature.

Enabling User Online Status in Chat List

In the TUIConversation component, within the TUIConversationConfig.java file, a switch for the "User Online Status" feature, named isShowUserStatus, is provided. Its type is boolean, with the default value of false.
public class TUIConversationConfig {
private boolean isShowUserStatus;
}
To enable the chat list to display user online status, first subscribe to the premium package, then turn on the user status feature switch in the Chat console, and change the default value of isShowUserStatus to true, or call the following method before initializing the chat page.
TUIConversationConfig.getInstance().setShowUserStatus(true);

Chat List Effect




Enabling User Online Status in Contacts List

In the TUIContact component, within the TUIContactConfig.java file, a switch for the "User Online Status" feature, named isShowUserStatus, is provided. Its type is boolean, with the default value of false.
public class TUIContactConfig {
private boolean isShowUserStatus;
}
To enable the contacts list to display user online status, first subscribe to the premium package, then turn on the user status feature switch in the Chat console, and change the default value of isShowUserStatus to true, or call the following method before initializing the contacts list page.
TUIContactConfig.getInstance().setShowUserStatus(true);

Contacts List Effect




FAQs

When the Subscription/Unsubscription API is called, the API returns error code "72001".

Error code 72001 indicates that the corresponding capability has not been activated in the console. Please log in to the Chat console and enable the corresponding feature switch.




Error: The package does not support the use of this API. Please upgrade to the premium package.

The "User Online Status" feature is only supported by the premium package. This error message indicates that your current package does not support this feature. Please log in to the Chat purchase page to activate the premium package and experience it.

Exchange and Feedback

Join the Telegram technical exchange group or WhatsApp discussion group, benefit from the support of professional engineers, and solve your toughest challenges.