Single Target Observation
Monitor individual story targets with real-time unseen status updates
Multi-Target Queries
Observe multiple story targets simultaneously for efficient feed management
Unseen Story Detection
Implement story rings and indicators for unviewed content
Live Object Updates
Real-time synchronization of target states and story availability
Story Targets provide metadata about story availability and viewing states for specific targets, enabling you to build engaging story feed interfaces with proper unseen indicators.
Get Single Story Target
ThegetStoryTarget()
function enables real-time observation of a specific story target, returning a Live Object that provides updates about story availability and unseen status.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
targetType | Enum | Yes | Type of target (currently supports .community ) |
targetId | String | Yes | ID of the target community |
Use Cases
- Story Ring Indicators: Show visual indicators for targets with unseen stories
- Feed Organization: Prioritize targets with new content
- User Experience: Guide users to fresh, unviewed content
- Analytics: Track story consumption patterns across targets
Get Multiple Story Targets
ThegetStoryTargets()
function enables retrieval of multiple story targets simultaneously, returning a Live Collection that observes updates across all specified targets.
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
targets | Array | Yes | Array of target pairs (max 10 targets) |
Implementation Patterns
- Story Feed Management: Monitor multiple communities for story availability
- Batch Updates: Efficient UI updates for multiple story indicators
- Feed Prioritization: Sort targets based on unseen story status
- Performance Optimization: Reduce network requests with batch queries