Skip to main content
Use message preview when your app needs a lightweight latest-message summary for a chat list, inbox row, or notification handoff. The SDK exposes preview data on channel and subchannel models after message preview is enabled for the network.
Message preview is configured outside these client SDK calls, typically through network settings. Client SDKs read the preview that is returned with channel or subchannel data; they do not enable the setting themselves.

Platform Surface

Parameters

Read Channel Preview

Read the preview from the channel object you already use for channel lists. Treat the preview as optional and render a fallback for empty channels.

Read Subchannel Preview

Use subchannel preview when your UI lists subchannels directly. Flutter currently exposes messagePreviewId on AmitySubChannel, but not the composed AmityMessagePreview object.

Preview Fields

Query Channels

Load channel lists that include preview data.

Query Messages

Load full message timelines when preview data is not enough.

Channel Unread Count

Combine previews with unread count and mention indicators.