as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
ContentLauncherServer接口,提供为内容启动器用例设置处理程序的能力。

方法

setHandler()

setHandler(handler: IContentLauncherHandler): void 将处理程序设置为接收内容启动器的回调。

参数

handler
IContentLauncherHandler 要设置的内容启动器处理程序。

setHandlerForComponent()

setHandlerForComponent(handler: IContentLauncherHandler, instance: IComponentInstance): void 将处理程序设置为接收给定组件的内容启动器的回调。

参数

handler
IContentLauncherHandler 要设置的内容启动器处理程序。
instance
IComponentInstance 要设置处理程序的IComponentInstance。
最后修改于 2026年10月26日