media-matcher.d.ts 635 B

123456789101112131415
  1. import { Platform } from '@angular/cdk/platform';
  2. /** A utility for calling matchMedia queries. */
  3. export declare class MediaMatcher {
  4. private _platform;
  5. /** The internal matchMedia method to return back a MediaQueryList like object. */
  6. private _matchMedia;
  7. constructor(_platform: Platform);
  8. /**
  9. * Evaluates the given media query and returns the native MediaQueryList from which results
  10. * can be retrieved.
  11. * Confirms the layout engine will trigger for the selector query provided and returns the
  12. * MediaQueryList for the query provided.
  13. */
  14. matchMedia(query: string): MediaQueryList;
  15. }