onUserActivityOccurred

Called when a user activity event is triggered within the SDK (e.g., opening a Story, viewing a page). This provides an opportunity for the client application to consume these analytics events.

Parameters

type

The StorytellerUserActivity.EventType indicating the type of event that occurred.

data

A UserActivityData object containing details about the event (e.g., story ID, page ID).