Retrieve and display stories with real-time updates, comprehensive filtering, and optimized playback support
getStory()
function retrieves individual stories by ID, returning a Live Object that observes real-time updates including reactions, view states, and other dynamic properties.
Parameter | Type | Required | Description |
---|---|---|---|
storyId | String | Yes | Unique identifier of the story to retrieve |
getActiveStories()
function retrieves non-expired stories for a specific target, providing a Live Collection optimized for story feed implementation with optimistic creation support.
Parameter | Type | Required | Description |
---|---|---|---|
targetType | Enum | Yes | Type of target (currently supports .community ) |
targetId | String | Yes | ID of the target community |
sortOption | Enum | No | Sorting order: .firstCreated or .lastCreated (default: .firstCreated ) |
getStoriesByTargets()
function enables retrieval of stories from multiple communities simultaneously, perfect for pre-downloading content and building comprehensive story feeds.
Parameter | Type | Required | Description |
---|---|---|---|
targets | Array | Yes | Array of target pairs (max 10 targets) |
sortOption | Enum | No | Sorting order across all targets |
targetType
and targetId
SYNCED
stories (excludes optimistic stories)