MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / isTablet

Function isTablet

core/src/utils/platform.ts:83–90  ·  view source on GitHub ↗
(win: Window)

Source from the content-addressed store, hash-verified

81};
82
83const isTablet = (win: Window) => {
84 const width = win.innerWidth;
85 const height = win.innerHeight;
86 const smallest = Math.min(width, height);
87 const largest = Math.max(width, height);
88
89 return isIpad(win) || isAndroidTablet(win) || (smallest > 460 && smallest < 820 && largest > 780 && largest < 1400);
90};
91
92const isMobile = (win: Window) => matchMedia(win, '(any-pointer:coarse)');
93

Callers

nothing calls this directly

Calls 2

isIpadFunction · 0.85
isAndroidTabletFunction · 0.85

Tested by

no test coverage detected