When a user clicks on the user profile avatar at the post creator area, UIKit will open User profile page
However, you can intercept the event and define your own logic following the example below.
When you create a Fragment via a Builder, you can add your own logic via onClickUserAvatar
method.
UIKit emits events that can be intercepted and processed by custom logic.
For example, you might want to know when a user taps a user avatar. You can intercept onClickUserAvatar
event and define your desired behavior.
Event
Parameter
Condition
onClickUserAvatar
user: AmityUser
community avatar or community display name is tapped
onClickMessage
community: AmityCommunity
message button on community page is tapped
onClickEditProfile
community: AmityCommunity
edit profile button on community page is tapped
onClickEditUserProfile
userId: String
edit user profile button on user profile page is tapped