platform.isTabletModeRendering

From Inspired-Lua Wiki
Jump to: navigation, 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.4 (Changes).


Syntax[edit]

platform.isTabletModeRendering()

Example[edit]

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

See also[edit]