Documentation Index
Fetch the complete documentation index at: https://mintlify.com/sceyt/sceyt-chat-android-uikit/llms.txt
Use this file to discover all available pages before exploring further.
SceytChatUIFacade is the internal wiring layer injected into SceytChatUIKit.chatUIFacade. It aggregates every domain interactor and core service into a single accessible object, allowing you to perform channel operations, message operations, user management, attachment handling, and more without needing to interact with Koin directly. You should always access this object through SceytChatUIKit.chatUIFacade rather than constructing it manually.
Package: com.sceyt.chatuikit
Interactors
Provides all channel-level operations: loading channel lists, creating and editing channels, muting, pinning, hiding, deleting, and managing unread counts and draft messages. See ChannelInteractor for the full method reference.
Handles all message operations: paginated loading in both directions, sending, editing, deleting, searching, syncing, and sending markers. See MessageInteractor for the full method reference.
Manages channel membership: loading members, adding or removing members, changing member roles, and banning/unbanning users from a channel.
Handles user profile operations: fetching users by ID, updating the current user’s profile and avatar, setting presence state, muting global notifications, and managing the block list. See UserInteractor for the full method reference.
Paginates through channel attachments by type (media, file, voice, link) and manages attachment metadata, transfer state, checksums, and link previews. See AttachmentInteractor for the full method reference.
Adds, removes, and fetches reactions on messages, and loads per-message reaction scores and voter lists.
Reads per-message marker data (delivered, read, played, etc.) for audit and receipt display.
Generates, revokes, and validates channel invite keys used to construct shareable invite deep links.
Core Services
Orchestrates background synchronisation of channels and messages after a reconnection. Called automatically on connect when
SceytChatUIKit.config.syncChannelsAfterConnect is true. You can also trigger or cancel a sync manually.Manages upload and download queues for message attachments. Tracks transfer progress, handles retries, and exposes per-attachment
TransferData state.Identity
The ID of the authenticated user as known to the facade. Resolves in order: cached
clientUserId → ClientWrapper.currentUser?.id → persisted preference. Returns null if no user has ever authenticated on this device.Token Events
Emits a
Unit value whenever the server reports that the current authentication token has expired. Subscribe here to trigger a token-refresh flow and call updateToken(...).Emits a
Unit value shortly before the current authentication token expires, giving you a window to proactively refresh it before the connection is interrupted.Methods
Sends a new authentication token to the server without requiring a full reconnect. Use this in response to
onTokenExpired or onTokenWillExpire.Wipes all local state: cleans the Room database, clears shared preferences, and resets the in-memory channels cache. This is a suspend function and must be called from a coroutine or another suspend function. It is called automatically by
logOut().Performs a full sign-out asynchronously: cancels background sync, cancels pending
WorkManager workers, calls clearData(), unregisters the Firebase push token, disconnects the ChatClient, resets the current user, and cancels all displayed push notifications. The optional unregisterPushCallback reports whether the push token was successfully removed from the server. This is the underlying implementation called by SceytChatUIKit.logOut().