- Query available targets — Discover which screens or sections the app offers for navigation.
- Query the current target — Determine which screen or section the user is viewing.
- Navigate to a target — Navigate the app to a specific screen or section.
handleGetCurrentTarget— A callback that returns active app targets.handleGetAvailableTargets— A callback that returns supported navigation targets.handleNavigateTargetRequest— A callback invoked when the system requests specific target navigation.
updateCurrentTarget— Notify the system when the current target changes.updateAvailableTargets— Notify the system when the list of available targets changes.
Vega Target Navigator Prerequisites
Before using this API, update your app manifest to declare your intention to use the Vega Target Navigator API. When modifying the manifest entries, replacecom.amazondeveloper.media.sample with your app package ID. Your app must be properly configured to interact with the Vega Target Navigator API.
Step 1: Install and set up Vega Target Navigator
To use the Vega Target Navigator API, update yourpackage.json file with the following dependency:
Step 2: Define your available targets
ATargetInfo object represents each target with the following fields:
identifier(number, required) — A unique numeric ID for a target within your app.name(string, optional) — A human-readable name for the target.standardId(StandardTargetIdentifier1, optional) — A standard identifier that maps to well-known destinations, enabling the system to understand the target’s purpose.
standardId.
Step 3: Implement the Target Navigator handler
Create aTargetNavigatorHandler object that implements three callback methods.
Handler method details
Step 4: Register the handler
Register the handler usingIComponentInstance from useKeplerAppStateManager(). Don’t do this on startup before calling any update methods.
Step 5: Report target state changes
After registering the handler, notify the system of the current state. Call bothupdateCurrentTarget and updateAvailableTargets on startup, and again if the state changes.
Update current target
Call app initialization whenever the user navigates to a different screen:undefined to indicate no current target, such as in a transitional state.
Update available targets
Update targets when the any navigable destinations change, such as when the user logs in.Troubleshooting Vega Target Navigator
API Reference
Classes
- TargetNavigatorProvider — TargetNavigatorProvider
Interfaces
- TargetInfo — Represents a target of navigation.
- TargetNavigatorHandler — The interface implemented by a target navigator server to handle requests.
Enumerations
- StandardTargetIdentifier1 — An enum of standard navigation targets.
Related topics
- Develop for Vega
- Vega Matter Casting Integration
- Content Launcher Integration Guide
- Get Started with Vega Media Controls
- Content Launcher and Account Login Testing

