MediaQuery is the runtime representation of a CSS media query expression.
It is evaluated against a context that provides the values that are referenced in the expression,
and evaluates to either true or false.
| Modifier and Type | Method and Description |
|---|---|
| public TriState | Returns: TriState#TRUE if the query is always true, TriState#FALSE
if the query is always false, otherwise TriState#UNKNOWNAttempts to determine the result of this media query without a context, and returns |
| public boolean | Returns: true if the media query matches, false otherwisethe evaluation context context)Evaluates this media query against the provided context. |
| public int | Returns: the context awareness flagsGets the context awareness flags of this media query, indicating which aspects of the media query context are probed by the query. |
| evaluate | back to summary |
|---|---|
| public TriState evaluate() Attempts to determine the result of this media query without a context, and returns
| |
| evaluate | back to summary |
|---|---|
| public boolean evaluate(MediaQueryContext context) Evaluates this media query against the provided context.
| |
| getContextAwareness | back to summary |
|---|---|
| public int getContextAwareness() Gets the context awareness flags of this media query, indicating which aspects of the media query context are probed by the query.
| |