Application
Extends EndPoint
Interface to the application object
Access this object via the application property.
Table of Contents
- Methods
- Properties
- Events
Methods
close
()
Closes the end point and stops listening for events.
This method no longer needs to be explicitly called as end points are now
automatically closed when the last event listener is removed.
open
()
Opens this end point and starts listening for events.
This method no longer needs to be explicitly called as end points are now
automatically opened when the first event listener is attached.
Use this method to keep the end point open even when no event listeners are attached.
untilOpen
()
Promise
Returns a promise that will be resolved when this end point is opened
Returns:
Promise
Example:
let C = new CantabileApi();
C.application.open();
await C.application.untilOpen();
Properties
bankedProgramNumberFormat
String
The preferred banked program display format - "SeparateBanks","CombinedBanks","Plain" or "ZeroPadded"
baseProgramNumber
Number
The base program number (0 or 1)
build
Number
The application's build number
busy
Boolean
The application's busy status
companyName
String
The application's company name
copyright
String
The application's copyright message
edition
String
The application edition string
name
String
The application name
version
String
The application version string
Events
busyChanged
Fired when the application busy state changes
Event Payload:
-
busy
BooleanTrue if the app is currently busy
changed
Fired when any of the application properties change
open
Fired when the application object has initially loaded