gwa.app API

Functions for querying version numbers and for working with application updates.

Table 1. Functions
Function Description
checkUpToDate()RETURNS gwa.app.TUpdateDialogResult
Checks if the application is up to date by comparing versions and date time stamps.
getBuild()RETURNS gwa.app.TBuildDateTime
Returns the date time stamp of when the application was built.
getGBCVersion()RETURNS STRING
Returns the version of the GBC embedded in the application.
getInformation()RETURNS gwa.app.TAppInformation
Returns the application version information.
getServerVersionAndBuild()RETURNS gwa.app.TAppInformation
Returns server application version information.
getTitle()RETURNS STRING
Returns the application title set by gwabuildtool --title.
getVersion()RETURNS STRING
Returns the application version set by gwabuildtool --app-version.
performUpdate()RETURNS STRING
Update the application.
set_href_to_new_index()RETURNS STRING
Set the href of the index page.
simulateBrowserUpdate()RETURNS STRING
Simulate a browser update (service worker update) and reload the page if the update was ok.
updateDialog(reportWhenUpToDate BOOLEAN)
   RETURNS gwa.app.TUpdateDialogResult
Checks if the application is up to date by calling checkUpToDate().
versionsAndBuildsEqual(
     version1 STRING, 
     version2 STRING, 
     build1 gwa.app.TBuildDateTime,
     build2 gwa.app.TBuildDateTime) 
  RETURNS BOOLEAN
Checks if the versions and build date-time stamps are equal. If versions are NULL, only build date-time stamps are compared for equality.