Difference between revisions of "platform.apilevel"

From Inspired-Lua Wiki
Jump to navigation Jump to search
(difference in loading apilevel, with 3.6+)
 
Line 8: Line 8:
 
* "2.5" for OS 3.11 (iPad App)
 
* "2.5" for OS 3.11 (iPad App)
 
* "2.6" for OS 4.0 and 4.1 (iPad App)
 
* "2.6" for OS 4.0 and 4.1 (iPad App)
 +
* "2.7" for OS 4.2 and later (including the CX II's OS)
  
 
Manually setting this property has to be done at the top of the lua script and can only be done once.
 
Manually setting this property has to be done at the top of the lua script and can only be done once.

Latest revision as of 16:26, 15 September 2019

String value describing the current API version.
Its value can be :

  • "1.0" for OS versions 3.0 and 3.1
  • "2.0" for OS 3.2
  • "2.2" for OS 3.4 (iPad App)
  • "2.3" for OS 3.6
  • "2.4" for OS 3.9
  • "2.5" for OS 3.11 (iPad App)
  • "2.6" for OS 4.0 and 4.1 (iPad App)
  • "2.7" for OS 4.2 and later (including the CX II's OS)

Manually setting this property has to be done at the top of the lua script and can only be done once.

Setting a unsupported apilevel has different behaviours when in < 3.6 and >= 3.6:
Before 3.6: The highest supported will be loaded.
With and after 3.6: The highest supported below the requested API level supported will be loaded. But requesting an API level below platform.apilevel = '1.0' will result in the latest/current apilevel available.