as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support

KeplerScriptAccountLogin

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


onReadStatusResponse()

onReadStatusResponse: (loginStatus, additionalData) => Promise<Object>

Sends the read login state callback.

Parameters

loginStatus

number

Specifies the user's login status.

additionalData

string

Specifies optional app-specific additional data.

Returns

Promise<Object>

A promise that resolves with the callback result.


setHandlerForComponent()

setHandlerForComponent: (handler, componentInstance) => Promise<Object>

Parameters

handler

() => void

Specifies the handler to be invoked on login status reads.

componentInstance

Object

Specifies the component instance to register to.

Returns

Promise<Object>

A promise that resolves with the registration result.


setReadStatusHandler()

setReadStatusHandler: (handler) => Promise<Object>

Registers a function to execute when a read status is requested.

Parameters

handler

() => void

Specifies the handler to be invoked on login status reads.

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 updated: Oct 02, 2025