This repository has been archived by the owner on Jun 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Event handling
Emee Miano edited this page Apr 1, 2022
·
2 revisions
There are many pages and actions on AmityUIKit. Pages can be nested inside others and it would be hard for overriding events on the nested pages. In order to solve this problem, we provide EkoEventHandler which is a behavior controller for actions that happen in UIKit.
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 |
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.