layoutEnvironment

Typefunction
Dictionarylibrary.responsivelayout
LibraryResponsiveLayout
Syntax
layoutEnvironment()
Associationscom.livecode.library.responsivelayout
Summary

Get the layout environment for the current card.

Example
on mouseUp pButtonNumber
   switch layoutEnvironment()
      case "desktop"
         set the iconPresetName of widget "SVG Icon" to "desktop"
         break

      case "tablet"
         set the iconPresetName of widget "SVG Icon" to "tablet"
         break

      case "mobile"
         set the iconPresetName of widget "SVG Icon" to "mobile phone"
         break
   end switch
end mouseUp
Description

Use the layoutEnvironment function to get the environment for which you are building the layout on the current card. This function like the changeLayoutEnvironment command is for use in the development process. So it will only work in the IDE, in other environments than the development one it returns empty.