width

fun width(min: <Error class: unknown class>? = null, max: <Error class: unknown class>? = null)

Adds a width MediaQuery.WidthFeature: pass min for min-width (>=) or max for max-width (<=). Exactly one must be given, and it must use Length.Unit.Px.

Throws

IllegalArgumentException

if both or neither of min/max are supplied.

IllegalStateException

if the supplied length is not in px.


fun width(value: Number, operator: <Error class: unknown class>, unit: <Error class: unknown class> = MediaQuery.WidthFeature.Unit.Px)

Adds a width MediaQuery.WidthFeature with an explicit operator (e.g. >, <=).

Parameters

value

the comparison width.

unit

the length unit; defaults to MediaQuery.WidthFeature.Unit.Px.