Retrieve and observe global story targets with real-time updates, intelligent filtering, and optimized sorting for comprehensive story discovery across your application
getGlobalStoryTargets()
function to retrieve all active story targets across your application with intelligent filtering and optimized sorting. Build comprehensive story discovery feeds with real-time updates and smart content prioritization.
getGlobalStoryTargets()
function supports four distinct query options, each optimized for different user experience patterns and discovery scenarios:
SMART
option provides the optimal user experience by intelligently combining unseen and seen story targets in a single collection.
Behavior | Description |
---|---|
Content Order | Unseen targets first, then seen targets |
Prioritization | Unsynced targets appear at the top |
Sorting | Recent creation first within each category |
Use Case | Primary story discovery feeds |
Option | Filter | Sorting | Unsynced Targets | Best For |
---|---|---|---|---|
SEEN | Only viewed targets | Recent creation first | Excluded | Revisiting content |
UNSEEN | Only unviewed targets | 1st: Unsynced first 2nd: Recent creation | Included | New content focus |
ALL | No filter | 1st: Unsynced first 2nd: Recent creation | Included | Complete overview |
SMART | Combined UNSEEN + SEEN | Concatenated results | Included | Optimal discovery |
Parameter | Type | Required | Description |
---|---|---|---|
queryOption | Enum | Yes | Filtering and sorting strategy for story targets |