Skip to main content

Application Events

The Application Events APIs (api.events.application) provide access to application events such as start, pause, and resume.

.onInternetConnectionChanged

Emits when the internet connection status changes.

Function

application.onInternetConnectionChanged(handler: Function)

Handler Parameters

Name

Type

Description

isConnected

boolean

true - internet connected

false - internet disconnected

Handler Returns

void(undefined)

.onLanConnectionChanged

Emits when LAN connection status changes.

Function

application.onLanConnectionChanged(handler: Function)

Handler Parameters

Name

Type

Description

isConnected

boolean

true - internet connected

false - internet disconnected

Handler Returns

void(undefined)

.onPauseApplication

Event fires when sending an application to the background.

Function

application.onPauseApplication(handler: Function)

Handler Parameters

None

Handler Returns

void(undefined)

.onResumeApplication

Event fires when retrieving an application from the background.

Function

application.onResumeApplication(handler: Function)

Handler Parameters

None

Handler Returns

void(undefined)

.onStartBusinessDay

Emits upon start of new business day.

Function

application.onStartBusinessDay(handler: Function)

Handler Parameters

Name

Type

Description

params

EventsApiBusinessDateHandlerParams

Information about newly started business day

Handler Returns

void(undefined)