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.
UserInteractor is the interface responsible for all user-profile, presence, and block-list operations in the Sceyt Chat Android UIKit. It is accessible via SceytChatUIKit.chatUIFacade.userInteractor. All methods are suspend functions unless otherwise noted. Methods that communicate with the server return SceytResponse<T> — a sealed class with Success and Error variants. Methods that only touch the local database return the result type directly.
Package: com.sceyt.chatuikit.persistence.interactor
Searching and Loading Users
Executes the supplied
UserListQuery against the server and returns the matching page of users.Loads the next page of results from the most recently executed
loadUsers query. Must be called after loadUsers has returned a successful response.Fetching Users
Fetches a single user’s public profile from the server by their unique user ID.
Fetches the public profiles of multiple users in a single server request.
Returns a user from the local database by their ID, or
null if they have not been cached.Returns multiple users from the local database by their IDs. Missing users are silently omitted from the result list.
Performs a local (offline) search of cached users by matching a metadata value against the specified metadata keys. Useful for looking up users by custom attributes stored in user metadata.
Current User
Returns the currently authenticated user. When
refreshFromServer is true, fetches the latest profile from the server before returning; otherwise, returns the cached value.Synchronously returns the current user’s ID from the local authentication state, or
null if no user is authenticated. This is a non-suspending function safe to call on the main thread.Returns a
Flow that emits the current user’s profile from the local database and re-emits whenever the profile is updated. Returns null if there is no authenticated user.Updating Profile
Uploads a local image file to the Sceyt CDN and returns the resulting avatar URL. Use the returned URL with
updateProfile to apply the new avatar.Updates the current user’s profile fields. Pass
null for fields you do not want to change.Presence and Status
Sets the current user’s presence state on the server (e.g. Online, Away, Offline).
Updates the current user’s text status message shown alongside their presence indicator.
User Settings and Notifications
Fetches the current user’s server-side settings, such as global mute state and notification preferences.
Globally mutes all push notifications for the current user until the specified epoch timestamp in milliseconds.
Re-enables global push notifications for the current user.
Block List
Blocks or unblocks a user. When
block = true, the specified user is added to the current user’s block list and they can no longer send direct messages. When block = false, the block is removed.