as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
KeplerScriptContentLauncher facilitates updating an application’s login status.

Extends

  • KeplerTurboModule

Properties

setupContentLauncherServer

setupContentLauncherServer: () => Promise<Object>
Setup the native ContentLauncherServer.

Returns

Promise<Object>

setHandler

setHandler: (handler: (transactionId: number, search: IInternalContentSearch, autoPlay: boolean, optionalFields: IInternalLaunchContentOptionalFields) => void) => Promise<Object>
Register the provided function to execute whenever content launch is requested.

Parameters

handler
(transactionId: number, search: IInternalContentSearch, autoPlay: boolean, optionalFields: IInternalLaunchContentOptionalFields) => void The handler to receive requests

Returns

Promise<Object> promise to asynchronously resolve/reject with success/fail

setHandlerForComponent

setHandlerForComponent: (handler: (transactionId: number, search: IInternalContentSearch, autoPlay: boolean, optionalFields: IInternalLaunchContentOptionalFields) => void, componentInstance: IComponentInstance) => Promise<Object>
Register the provided function to execute whenever content launch is requested.

Parameters

handler
(transactionId: number, search: IInternalContentSearch, autoPlay: boolean, optionalFields: IInternalLaunchContentOptionalFields) => void The handler to receive requests
componentInstance
IComponentInstance An object representing the component instance to register to.

Returns

Promise<Object> promise to asynchronously resolve/reject with success/fail

getMajorVersion

getMajorVersion: () => number
Get Major Version.

Returns

number

getMinorVersion

getMinorVersion: () => number
Get Minor Version.

Returns

number

getPatchVersion

getPatchVersion: () => number
Get Patch Version.

Returns

number

Methods

handleLaunchContentResponse()

handleLaunchContentResponse(transactionId: number, launcherResponse: IInternalLaunchResponse): void

Parameters

transactionId
number
launcherResponse
IInternalLaunchResponse
最后修改于 2026年8月25日