Skip to main content
Version: 15.5.0

Device.viewport property

Signature:

interface Device {
viewport: {
width: number;
height: number;
deviceScaleFactor: number;
isMobile: boolean;
hasTouch: boolean;
isLandscape: boolean;
};
}