as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
TargetNavigatorProvider High-level API for providing a target navigator server implementation.

Constructors

new TargetNavigatorProvider()

new TargetNavigatorProvider(): TargetNavigatorProvider

Returns

TargetNavigatorProvider

Methods

registerTargetNavigatorHandler()

static registerTargetNavigatorHandler(handler: TargetNavigatorHandler, componentInstance: IComponentInstance): void
Register a handler for target navigator callbacks. While this can be called for multiple components, only the component specified in the application manifest will receive requests.

Parameters

handler
TargetNavigatorHandler The object implementing target navigator callbacks.
componentInstance
IComponentInstance The component instance object received from the onStart callback.

updateAvailableTargets()

static updateAvailableTargets(availableTargets: TargetInfo[]): void
Update the available targets for this server.

Parameters

availableTargets
TargetInfo[] A list of targets that are now available for navigation. This list must not contain more than 256 elements. Note: Providers should call this upon startup and whenever the list of available targets changes.

Throws

  • Error if availableTargets contains more than 256 elements.

updateCurrentTarget()

static updateCurrentTarget(currentTarget?: TargetInfo | undefined): void
Update the current target for this server.

Parameters

currentTarget?
TargetInfo | undefined Optional info for the new current target. This can be set to null to indicate that there is not a current target which could be navigated to using the target navigator interface. Note: Providers should call this upon startup and whenever the current target changes.
最后修改于 2026年8月25日