The Sceyt Chat Android UIKit compresses images and videos before upload, records voice messages through a built-in recorder, and manages file transfers via a dedicated foreground service. All of these subsystems are configurable through properties onDocumentation 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.
SceytChatUIKit.config, letting you balance quality, upload speed, and storage usage for your specific use case.
Image Resizing
Images selected from the gallery or captured with the camera are resized before being attached to a message. Two separate resize targets let you apply different quality settings to avatars versus message attachments.Message Attachments
Channel and User Avatars
ResizeConfig Values
ResizeConfig is an open class with three built-in presets. Each preset controls the maximum dimension threshold (in pixels) and JPEG compression quality:
| Preset | dimensionThreshold | compressionQuality | Recommended for |
|---|---|---|---|
ResizeConfig.Low | 720 px | 80 % | Avatars, thumbnails |
ResizeConfig.Medium | 1080 px | 80 % | Message photos (default) |
ResizeConfig.High | 1600 px | 90 % | High-fidelity image sharing |
ResizeConfig:
Video Resizing
Video attachments are transcoded through an internalCustomVideoCompressor pipeline. Configure the target quality with VideoResizeConfig:
VideoResizeConfig Values
| Preset | dimensionThreshold | compressionQuality | frameRate | bitrate |
|---|---|---|---|---|
VideoResizeConfig.Low | 800 px | 80 % | 30 fps | 500 000 bps |
VideoResizeConfig.Medium | 1200 px | 80 % | 30 fps | 1 000 000 bps |
VideoResizeConfig.High | 1600 px | 80 % | 30 fps | 2 000 000 bps |
VideoResizeConfig:
Voice Recorder
The built-in voice recorder is configured viaSceytChatUIKit.config.voiceRecorderConfig, which accepts a VoiceRecorderConfig data class:
| Property | Default | Description |
|---|---|---|
maxDuration | 5 minutes | Either VoiceRecorderDuration.Unlimited or VoiceRecorderDuration.MaxDuration(ms) |
bitrate | 32 000 bps | Audio bitrate of the recorded voice file |
simplingRate | 16 000 Hz | Audio sampling rate |
Example: Allowing unlimited-length voice messages
The property is spelled
simplingRate in the source (not samplingRate). Use the exact name shown above when constructing a custom VoiceRecorderConfig.Attachment Selection Limit
The maximum number of files a user can attach in a single message is controlled byattachmentSelectionLimit. It accepts values from 1 to 50, with a default of 20.
File Transfer Service
Attachment uploads run inside a bound foreground service accessed throughSceytChatUIKit.chatUIFacade.filesTransferService. UIKit manages the service lifecycle automatically, but you can interact with it for monitoring or advanced control:
Media Preview
Full-screen media preview is opened throughDestination.MediaPreview. Pass a MediaPreviewParams.SingleAttachment to view a single file with server-side pagination, or MediaPreviewParams.PreloadedList to browse a locally prepared list without extra network calls: