제품 개요
Basic Concepts
응용 시나리오
기능 소개
계정 시스템
사용자 정보 및 관계망
메시지 관리
그룹 시스템
Official Account
Audio/Video Call
사용 제한
Search Entry | Search Results |
![]() | ![]() |
SearchScreen is the entry point for the Search component. It only exposes the initialization method for the search component; all other logic is encapsulated within SearchScreen.Method | Parameter | Description |
SearchScreen | modifier: Modifier | Used in Jetpack Compose to set the style, layout, behavior, and appearance of the component. |
| onBack: () -> Unit | Webhook triggered when the Cancel button is clicked; optional parameter. |
| onContactSelect: (FriendSearchInfo) -> Unit | Webhook triggered when a searched contact item is clicked; optional parameter. |
| onGroupSelect: (GroupSearchInfo) -> Unit | Webhook triggered when a searched group item is clicked; optional parameter. |
| onConversationSelect: (MessageSearchResultItem) -> Unit | Webhook triggered when a searched conversation item is clicked; optional parameter. |
| onMessageSelect: (MessageInfo) -> Unit | Webhook triggered when a searched message item is clicked; optional parameter. |
SearchScreen is as follows:onContactSelect, onGroupSelect, onConversationSelect, or onMessageSelect). You must implement custom navigation in these webhook handlers (for example, navigating to your custom chat interface).
SearchScreen component as shown below:SearchScreen(modifier = Modifier.Companion.fillMaxSize().statusBarsPadding().navigationBarsPadding(),onBack = {// Cancel button click event},onContactSelect = {// Contact click event},onGroupSelect = {// Group click event},onConversationSelect = {// Conversation click event},onMessageSelect = {// Message click event})
フィードバック