platform.isTabletModeRendering

From Inspired-Lua Wiki
Revision as of 13:35, 9 July 2013 by Adriweb (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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.0 (Changes).


Syntax

platform.isTabletModeRendering()

Example

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

See also