Application:getProjectProperties

From GiderosMobile
Revision as of 19:49, 15 December 2023 by MoKaLux (talk | contribs) (Created page with "'''Available since:''' Gideros 2023.12<br/> '''Class:''' Application<br/> === Description === Returns the properties of the project. <syntaxhighlight lang="lua"> (table)...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2023.12
Class: Application

Description

Returns the properties of the project.

(table) = application:getProjectProperties()

The returned values are:

  • buildTime (number)
  • buildNumber (number)
  • version (number)
  • name (string)
  • versionCode (number)

Return values

Returns (table) a table with the project properties

Example

local prop = application:getProjectProperties()

local buildTime, buildNumber, version, name, versionCode =
	prop.buildTime, prop.buildNumber, prop.version, prop.name, prop.versionCode

local pdate = os.date("*t", buildTime)

print(pdate.year, pdate.month, pdate.day, pdate.min, pdate.sec)
print(buildNumber, version, name, versionCode)