Event Handling

Custom Event Handler

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 onClickUserAvatarevent and define your desired behavior.

Supported events

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

Last updated