Interface MediaQueryPredicate

All Superinterfaces:
BooleanCondition
All Known Subinterfaces:
MediaFeature, MediaFeaturePredicate

public interface MediaQueryPredicate extends BooleanCondition
A predicate in a boolean expression from a Media Query.
  • Field Details

    • MEDIA_TYPE

      static final int MEDIA_TYPE
      Constant for media type (name) predicates.
      See Also:
    • MEDIA_FEATURE

      static final int MEDIA_FEATURE
      Constant for media feature predicates.

      You can cast predicates of this type to MediaFeature.

      See Also:
  • Method Details

    • getName

      String getName()
      Get a name associated with this predicate.

      Examples: screen, width.

      Returns:
      the name of o medium or media feature.
    • getPredicateType

      int getPredicateType()
      An number indicative of the predicate type.
      Returns:
      the predicate type, MEDIA_TYPE for media names and MEDIA_FEATURE for media features.