platform.isDeviceModeRendering

From Inspired-Lua Wiki
Jump to: navigation, search

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


Returns a boolean :

  • true if the script is running on the hand-held device, or in the hand-held view in the emulator of the desktop software.
  • false if the script is running in the normal view (bigger screen) of the desktop software.


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


Syntax[edit]

platform.isDeviceModeRendering()

Example[edit]

device = platform.isDeviceModeRendering() and "handheld" or "software"
-- will set device to "handheld" or "software" accordingly

See also[edit]