mediaQuery

Typefunction
Dictionarylibrary.responsivelayout
LibraryResponsiveLayout
Syntax
mediaQuery([pLongId])
Associationscom.livecode.library.responsivelayout
Summary

Get information about the mediaQuery of the current card.

Parameters
NameTypeDescription
pLongId

The long id of a card.

Example
local tMediaQueryArray

put mediaQuery() into tMediaQueryArray
set the arrayData of widget"Tree View" to tMediaQueryArray
Description

Use the mediaQuery function to get information from the current card's mediaQuery.

This function returns an array with the following structure: - platform: The name of the platform, according to the platform() function. - system: The operating system, according to the systemVersion() function. - systemPixelScale: The pixel scale of the operating system, according to the systemPixelScale() function. - engine: The version of the LiveCode engine. - systemDarkMode: A boolean indicating whether the operating system has dark mode active. This value will always be false for Linux operating systems. - layout: An array with the breakpoint properties of the current layout.