Retrieve and observe individual or multiple story targets with real-time updates, enabling features like unseen story indicators and targeted content management
getStoryTarget()
function enables real-time observation of a specific story target, returning a Live Object that provides updates about story availability and unseen status.
Parameter | Type | Required | Description |
---|---|---|---|
targetType | Enum | Yes | Type of target (currently supports .community ) |
targetId | String | Yes | ID of the target community |
getStoryTargets()
function enables retrieval of multiple story targets simultaneously, returning a Live Collection that observes updates across all specified targets.
Parameter | Type | Required | Description |
---|---|---|---|
targets | Array | Yes | Array of target pairs (max 10 targets) |