Sending Events

This section shows you how to send the Storyly events to specific data platforms. You can use the following function of StorylyVerticalFeedListener to redirect the Storyly events to your data platform:

override fun VerticalFeedEvent(view: StorylyVerticalFeedView, 
                               event: VerticalFeedEvent,
                          		 feedGroup: VerticalFeedGroup?,
                               feedItem: VerticalFeedItem?,
                          		 feedItemComponent: VerticalFeedItemComponent?) {}
 @Override
public void VerticalFeedEvent(@NonNull StorylyVerticalFeedView view, 
                              @NonNull feedEvent event,
                        		  @Nullable feedGroup verticalFeedGroup, 
                              @Nullable feedItem verticalFeedItem,
                              @Nullable feedItemComponent verticalFeedItemComponent) {}

📘

Tip

You can also check Vertical Feed Events

Vertical Feed Events

This section shows you how to observe Vertical Feed's basic functionality events. To get notification about these basic events, you should override the following functions in StorylyVerticalFeedListener, which you have registered in Initial SDK Setup.

📘

Tip

You can also check Vertical Feed Events

VerticalFeedShown Event

This event will let you know that content is starting to be shown to the users. To be notified about this event, use the following example:

override fun verticalFeedShown(view: StorylyVerticalFeedView) {}
@Override
public void verticalFeedShown(@NonNull StorylyVerticalFeedView view) {}

VerticalFeedDismissed Event

This event will let you know that the user dismissed the current video while watching it. To be notified about this event, use the following example:

override fun verticalFeedDismissed(view: StorylyVerticalFeedView) {}
@Override
public void verticalFeedDismissed(@NonNull StorylyVerticalFeedView view) {}

Interactive Events

This guide shows you how to get the reactions of users from specific interactive components. You can use the following function to get the reactions of your users:

override fun verticalFeedUserInteracted(view: StorylyVerticalFeedView,
                                        feedGroup: VerticalFeedGroup,
                                        feedItem: VerticalFeedItem,
                                        feedComponent: VerticalFeedItemComponent) {}
@Override
public void verticalFeedUserInteracted(@NonNull StorylyVerticalFeedView view,
                                       @NonNull VerticalFeedGroup feedGroup,
                                       @NonNull VerticalFeedItem feedItem,
                                       @NonNull VerticalFeedItemComponent feedComponent) {}

feedComponent parameter informs your application about the interacted component and the details of the interaction. For instance, if a user answers a quiz, the payload will include what the right answer is and what the user's answer is. The structure of feedComponent is different for each of the interactive components.