Global Search lets users find channels, messages, media, files, voice messages, and links from a single unified search screen. The UIKit shipsDocumentation 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.
GlobalSearchActivity — a full-screen, tab-based search experience with a smooth shared-element transition from a search bar in the channel list, optional user-suggestion chips, and configurable debounce and auto-close behaviour. Opening it requires a single Destination.GlobalSearch call.
Opening GlobalSearchActivity
UseDestination.GlobalSearch through the UIKit navigator:
Shared-element transition from a search bar
When you pass the search barView as sourceView, GlobalSearchActivity uses a shared-element scene transition. The search input expands smoothly from the source view into the full-screen search bar:
ChannelListFragment uses this pattern automatically when the user taps the search bar at the top of the channel list. The View passed as sourceView must have the shared transition name GlobalSearchActivity.SHARED_TRANSITION_NAME set in XML or code for the animation to work:
The shared-element transition is only activated when both a non-null
sourceView and an Activity context are provided. If either is absent, the UIKit falls back to its standard slide-in-right animation.Search tabs
GlobalSearchActivity displays results in a horizontal tab bar backed by a ViewPager2. The default tabs are:
| Tab | Content |
|---|---|
| Chats | Messages matching the query inside joined channels |
| Channels | Public and joined channels matching the query |
| Media | Photo and video attachments |
| Files | File attachments |
| Voice | Voice message attachments |
| Links | Shared links |
ChatsSearchFragment, ChannelsSearchFragment, MediaSearchFragment, FilesSearchFragment, VoiceSearchFragment, LinksSearchFragment). You can change which tabs appear by subclassing GlobalSearchActivity and overriding provideTabs():
GlobalSearchConfig — configuring search behaviour
Search behaviour is controlled byGlobalSearchConfig inside SceytChatUIKitConfig. Configure it once during SDK initialisation, typically in Application.onCreate():
GlobalSearchCloseBehavior options
| Value | Behaviour |
|---|---|
Never | The search screen stays open until the user presses Back |
OnChannelOpen | Closes when the user taps a channel, message, or media result |
OnMessageSent | Closes when an outgoing message is detected on any channel |
SearchChannelParams — configuring channel search
TheSearchChannelParams data class controls how channel-name queries are matched. Set it via the channelListConfig or pass it directly to your custom search logic:
User suggestions
While the search input is empty,GlobalSearchActivity displays horizontal user-suggestion chips sourced from GlobalSearchUserSuggestionsProvider. The built-in DefaultUserSuggestionsProvider returns the most recently active contacts. Replace it by overriding getUserSuggestionsProvider() in a subclass:
Subclassing GlobalSearchActivity
Override anyopen method to customise individual parts of the screen while keeping everything else: