Customize message click events
Sendbird UIKit provides a basic interface that can receive events for each area of the message UI.
Types of events
The following are types of message click events that UIKit for Android provides.
|Message click events
Message mention click
Message profile click
Quote reply click
Thread info click
Emoji reaction click
There are two ways to receive events as shown below. Note that click events are only invoked in default Views provided by the UIKit. Consequently, events occurring within custom view are not received.
Note: If events are registered using the Builder and the app is forcibly terminated due to memory shortages, the registered custom events may be lost. To avoid such loss, inherit from the fragment when constructing a screen for multiple uses.
Receive events through Builder
The following code shows an example of how events can be received through the builder.
Receive events using a custom fragment
Fragments, you can override the predefined functions, and specify a custom behavior instead.
Note: For events related to reactions, you should register them within the message list component.
For an in-depth practical demonstration, see our sample code.