Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
Facilitates updating an application’s login status.

Extends

  • KeplerTurboModule

Properties

getConstants()?

readonly optional getConstants: () => object

Returns

object

Inherited from

KeplerTurboModule.getConstants

getMajorVersion()

getMajorVersion: () => number Gets the major version number.

Returns

number The major version number.

Overrides

KeplerTurboModule.getMajorVersion

getMinorVersion()

getMinorVersion: () => number Gets the minor version number.

Returns

number The minor version number.

Overrides

KeplerTurboModule.getMinorVersion

getPatchVersion()

getPatchVersion: () => number Gets the patch version number.

Returns

number The patch version number.

Overrides

KeplerTurboModule.getPatchVersion

setHandler()

setHandler: (readStatusHandler, getSetupPinHandler, loginHandler, logoutHandler) => Promise<Object> Registers handlers for provider requests without a component instance (legacy path).

Parameters

readStatusHandler
(onSuccess, onError) => void
getSetupPinHandler
(accountId, onSuccess, onError) => void
loginHandler
(accountId, pin, onSuccess, onError) => void
logoutHandler
(onSuccess, onError) => void

Returns

Promise<Object>

setHandlerForComponent()

setHandlerForComponent: (readStatusHandler, getSetupPinHandler, loginHandler, logoutHandler, componentInstance) => Promise<Object> Registers handlers for a specific component to execute when provider requests are received. Each handler receives HostCallbacks from native to respond directly.

Parameters

readStatusHandler
(onSuccess, onError) => void Invoked on login status reads.
getSetupPinHandler
(accountId, onSuccess, onError) => void Invoked on get setup pin requests.
loginHandler
(accountId, pin, onSuccess, onError) => void Invoked on login requests.
logoutHandler
(onSuccess, onError) => void Invoked on logout requests.
componentInstance
Object The component instance to register to.

Returns

Promise<Object> A promise that resolves with the registration result.

setupAccountLoginServer()

setupAccountLoginServer: () => Promise<Object> Sets up the native AccountLoginServer.

Returns

Promise<Object> A promise that resolves with the setup result.

updateStatus()

updateStatus: (loginStatus, additionalData) => Promise<Object> Update Login Status.

Parameters

loginStatus
number Specifies the login status. When set to 1, indicates logged in; when set to 0, indicates logged out.
additionalData
string Specifies additional data to include with the status update.

Returns

Promise<Object> A promise that resolves with the update result.
Last modified on May 13, 2026