# Event Handling

### Custom Event Handler

UIKit emits events that can be intercepted and processed by custom logic.&#x20;

For example, you might want to know when a user taps a user avatar. You can intercept `onClickUserAvatar`event and define your desired behavior.&#x20;

### **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 |
