Interface MediaQueryPredicate

All Superinterfaces:
All Known Subinterfaces:
MediaFeature, MediaFeaturePredicate

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


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

      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.

      the name of o medium or media feature.
    • getPredicateType

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