Difference between revisions of "platform.isDeviceModeRendering"
Jump to navigation
Jump to search
(Created page with "platform.'''isDeviceModeRendering''' is a function that is part of platform. Returns a boolean : * ''true'' if the script is running on the hand-held de...") |
|||
Line 3: | Line 3: | ||
Returns a boolean : | Returns a boolean : | ||
− | * ''true'' if the script is running on the hand-held device or in the emulator of the desktop software. | + | * ''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 of the desktop software. | + | * ''false'' if the script is running in the normal view (bigger screen) of the desktop software. |
Line 13: | Line 13: | ||
== Example == | == Example == | ||
− | <syntaxhighlight>device = platform.isDeviceModeRendering()</syntaxhighlight> | + | <syntaxhighlight>device = platform.isDeviceModeRendering() and "handheld" or "software" |
+ | -- will set device to "handheld" or "software" accordingly</syntaxhighlight> | ||
== See also == | == See also == | ||
*[[:Category:platform|platform]] | *[[:Category:platform|platform]] | ||
− | <br /> | + | <br /> |
− | |||
[[Category:platform]] | [[Category:platform]] |
Latest revision as of 20:28, 11 August 2011
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
platform.isDeviceModeRendering()
Example
device = platform.isDeviceModeRendering() and "handheld" or "software"
-- will set device to "handheld" or "software" accordingly
See also