- getMediaContext(breakpoints?): {
isDesktop: boolean;
isMobile: boolean;
isPhone: boolean;
isTablet: boolean;
isWide: boolean;
} Parameters
- breakpoints: Partial<IBreakpoints> = {}
Returns {
isDesktop: boolean;
isMobile: boolean;
isPhone: boolean;
isTablet: boolean;
isWide: boolean;
}
- The media context object.
isDesktop: boolean
isMobile: boolean
isPhone: boolean
isTablet: boolean
isWide: boolean
Calculates the media context based on provided breakpoints.