Difference between revisions of "platform.isTabletModeRendering"

From Inspired-Lua Wiki
Jump to navigation Jump to search
(Created page with "platform.'''isTabletModeRendering''' is a function that is part of platform. Returns a boolean : * ''true'' if the script is running on a tablet device...")
 
 
Line 7: Line 7:
  
  
{{Since|3.0}}
+
{{Since|3.4}}
  
 
== Syntax  ==
 
== Syntax  ==

Latest revision as of 14:35, 9 July 2013

platform.isTabletModeRendering is a function that is part of platform.


Returns a boolean :

  • true if the script is running on a tablet device (iPad app, for example).
  • false if the script is running somewhere else (Calculator, Computer software...).


This has been introduced in TI-Nspire OS 3.4 (Changes).


Syntax

platform.isTabletModeRendering()

Example

isTablet = platform.isTabletModeRendering()
-- will set the boolean isTablet to true

See also