as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
Interface for handling AccountLogin callbacks asynchronously. All handlers are optional — a component only needs to implement the handlers relevant to its role (e.g. a service component may only handle read status).

Methods

handleReadStatus()

handleReadStatus(): Promise<IStatus>
Asynchronously handles the read status operation.

Returns

Promise<IStatus> Promise<IStatus> A promise that resolves to the user account login status.

handleGetSetupPin()

handleGetSetupPin(accountId: string): Promise<string>
Asynchronously handles a get setup pin request.

Parameters

accountId
string The identifier of the account requesting a setup pin.

Returns

Promise<string> Promise<string> A promise that resolves to the setup pin string.

handleLogin()

handleLogin(accountId: string, pin: string): Promise<void>
Asynchronously handles a login request.

Parameters

accountId
string The identifier of the account to login.
pin
string The setup pin for the account.

Returns

Promise<void> Promise<void> A promise that resolves when the login request has been processed.

handleLogout()

handleLogout(): Promise<void>
Asynchronously handles a logout request.

Returns

Promise<void> Promise<void> A promise that resolves when the logout request has been processed.
最后修改于 2026年8月25日