as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持

IChannelServer2

IChannelServer2

ChannelServer接口修订版2,提供为变更设置处理程序以及跳过频道请求的能力。该处理程序专为特定组件实例设置。

方法

setHandlerForComponent()

setHandlerForComponent(handler, instance): void

在频道服务器上为特定组件设置处理程序。

参数

handler

IChannelHandler

要在IChannelServerAsync实例上设置的处理程序。

instance

IComponentInstance

返回值

void


Last updated: 2025年10月2日