public class MediaQuery extends Object
Constructor and Description |
---|
MediaQuery(String type, List<MediaExpression> expressions, boolean only, boolean not)
Creates a new MediaQuery instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
matches(MediaDeviceDescription deviceDescription)
Tries to match a device description with the media query.
|
public MediaQuery(String type, List<MediaExpression> expressions, boolean only, boolean not)
MediaQuery
instance.
type
- the type
expressions
- the expressions
only
- logical "only" value
not
- logical "not" value
public boolean matches(MediaDeviceDescription deviceDescription)
deviceDescription
- the device description
Copyright © 1998–2019 iText Group NV. All rights reserved.