as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
感谢您的访问。此页面目前仅提供英语版本。我们正在开发中文版本。谢谢您的理解。

KeplerScriptChannel

Extends

  • KeplerTurboModule

Properties

getConstants()?

readonly optional getConstants: () => object

Returns

object

Inherited from

KeplerTurboModule.getConstants


getMajorVersion()

getMajorVersion: () => number

Get Major Version.

Returns

number

Overrides

KeplerTurboModule.getMajorVersion


getMinorVersion()

getMinorVersion: () => number

Get Minor Version.

Returns

number

Overrides

KeplerTurboModule.getMinorVersion


getPatchVersion()

getPatchVersion: () => number

Get Patch Version.

Returns

number

Overrides

KeplerTurboModule.getPatchVersion


handleChannelChangeResponseRejected()

handleChannelChangeResponseRejected: (transactionId, error) => void

Send the rejected response for the change channel commands

Parameters

transactionId

number

Transaction Id associated with the change channel command

error

string

The error string

Returns

void


handleChannelChangeResponseResolved()

handleChannelChangeResponseResolved: (transactionId, changeChannelResponse) => void

Send the resolved response for the change channel commands

Parameters

transactionId

number

Transaction Id associated with the change channel command

changeChannelResponse

IInternalChangeChannelResponse

The change channel response

Returns

void


setHandlersForComponent()

setHandlersForComponent: (changeChannelHandler, changeChannelByNumberHandler, skipChannelHandler, componentInstance) => Promise<Object>

Register the provided channel change handlers to execute when requested.

Parameters

changeChannelHandler

ChangeChannelHandler

The handler to receive requests for channel change

changeChannelByNumberHandler

ChangeChannelByNumberHandler

The handler to receive requests for channel change by number

skipChannelHandler

SkipChannelHandler

The handler to receive requests for channel skip

componentInstance

IComponentInstance

An object representing the component instance to register to

Returns

Promise<Object>

promise to asynchronously resolve/reject with success/fail


setupChannelServer()

setupChannelServer: () => Promise<Object>

Setup the native ChannelServer.

Returns

Promise<Object>


Last updated: Oct 02, 2025