UIKIT allows the default behaviour to be overridden by custom logic.
Loading...
Loading...
Loading...
Loading...
This settings allows you to control where a post can be shared to based on the post origin.
My feed - The post can be shared to my feed. This option will enable "Share to my timeline" menu when user clicks share button.
Public community - The post can be shared to any public community. This option will enable "Share to group" menu when user clicks share button.
Private community - The post can be shared to any private community. This option will enable "Share to group" menu when user clicks share button.
External - The post can be shared externally. This option will enable "More options" menu when user clicks share button.
Origin - The post can be shared within the community feed that it was created. If the post was created in either public or private community, this option will enable "Share to group" menu when user clicks share button.
My feed post - Posts that were created on my feed. By defaults, possible sharing targets are My feed, Public community, and Private community.
User feed post - Posts that were created on any other users' feed. By defaults, possible sharing targets are My feed, Public community, and Private community.
Public community feed post - Posts that were created on any public community. By defaults, possible sharing targets are My feed, Public community, and Private community.
Private community feed post - Posts that were created on any private community. By defaults, possible sharing target is Origin.
You can select a set of targets for each post origin.
Based on Post sharing settings, there are up to three post sharing events that can be emitted by UIKit.
Share to my timeline - an event emitted when a user clicks on "Share to my timeline" button.
Share to group - an event emitted when a user clicks on "Share to group" button.
Share externally - an event emitted when a user clicks "More options" button.
You can choose to intercept one or all of the events and apply your custom behaviour.
Event
Parameter
Condition
onClickUserAvatar
user: EkoUser
community avatar or community display name is tapped
onClickMessage
community: EkoCommunity
message button on community page is tapped
onClickEditProfile
community: EkoCommunity
edit profile button on community page is tapped
onClickEditUserProfile
userId: String
edit user profile button on user profile page is tapped
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.