# Event Handling

### Custom Event Handler

There are many pages and actions on social.plus UIKit. Pages can be nested inside others and it would be hard to override events on the nested pages. To solve this problem, we provide `EkoEventHandler` which is a behavior controller for actions that happen in UIKit.

### Supported Events

| Event                  | Parameter   | Condition                                            |
| ---------------------- | ----------- | ---------------------------------------------------- |
| communityDidTap        | communityId | community avatar or community display name is tapped |
| userDidTap             | userId      | user avatar or user display name is tapped           |
| editUserDidTap         | userId      | edit user button is tapped                           |
| postDidtap             | postId      | post or comment on social feed is tapped             |
| editPostDidTap         | postId      | edit post button is tapped                           |
| channelDidTap          | channelId   | user channel list or user chat button is tapped      |
| communityChannelDidTap | channelId   | n/a                                                  |
