Optional
aspectOptional
devicesSpecifies a list of Devices to target for.
The handler will only be called if there is a change of device to a device matching the specification.
It can be:
<Device>
<Device>
<DeviceMin>
and at most as wide as <DeviceMax>
NOTE
If only one of devices or aspectRatios is specified, the handler will only be called for matching changes of device or aspect ratio respectively.
If neither is specified, the handler will be called for any change of layout (device or aspect ratio).
Also note that an empty array is treated the same as not given, or null
.
Optional
skipDo not call the handler until there's a future change of layout.
By default, we call the handler (almost) immediately with the current layout data if it matches the given devices and aspectRatios.
Specifies a list of AspectRatios to target for.
The handler will only be called if there is a change of aspect ratio to an aspect ratios matching the specification.
It can be:
<AspectRatio>
<AspectRatio>
<AspectRatioMin>
and at most as wide as<AspectRatioMax>
NOTE
If only one of devices or aspectRatios is specified, the handler will only be called for matching changes of device or aspect ratio respectively.
If neither is specified, the handler will be called for any change of layout (device or aspect ratio).