as

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

IAccountLoginHandlerAsync

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 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 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 A promise that resolves when the login request has been processed.


handleLogout()

handleLogout(): Promise<void>

Asynchronously handles a logout request.

Returns

Promise<void>

Promise A promise that resolves when the logout request has been processed.


Last updated: Jul 22, 2026