Interface DisplayModeOptions<T>

Source
Expand description

Options for display mode detection. See initDisplayMode

interface DisplayModeOptions<T extends string> {
    detect: (width: number, height: number, isMobile: boolean) => T;
    initial?: T;
}

Properties§

§detect: { ... }

Function to determine the display mode based on viewport width and height, and if the device is mobile

§initial?: T

Set the initial value, if the platform doesn't support detecting the display mode. detect() will be used instead if supported