sveltekit-device-detector
Version:
Detect device type and render your component according to it
89 lines (88 loc) • 2.96 kB
TypeScript
export declare const isSmartTV: boolean;
export declare const isConsole: boolean;
export declare const isWearable: boolean;
export declare const isEmbedded: boolean;
export declare const isMobileSafari: boolean | "";
export declare const isChromium: boolean;
export declare const isMobile: boolean | "";
export declare const isMobileOnly: boolean;
export declare const isTablet: boolean | "";
export declare const isBrowser: boolean;
export declare const isDesktop: boolean;
export declare const isAndroid: boolean;
export declare const isWinPhone: boolean;
export declare const isIOS: boolean | "";
export declare const isChrome: boolean;
export declare const isFirefox: boolean;
export declare const isSafari: boolean;
export declare const isOpera: boolean;
export declare const isIE: boolean;
export declare const osVersion: string;
export declare const osName: string;
export declare const fullBrowserVersion: string;
export declare const browserVersion: string;
export declare const browserName: string;
export declare const mobileVendor: string;
export declare const mobileModel: string;
export declare const engineName: string;
export declare const engineVersion: string;
export declare const getUA: string;
export declare const isEdge: boolean;
export declare const isYandex: boolean;
export declare const deviceType: string;
export declare const isIOS13: boolean;
export declare const isIPad13: boolean | "";
export declare const isIPhone13: boolean | "";
export declare const isIPod13: boolean | "";
export declare const isElectron: boolean;
export declare const isEdgeChromium: boolean;
export declare const isLegacyEdge: boolean;
export declare const isWindows: boolean;
export declare const isMacOs: boolean;
export declare const isMIUI: boolean;
export declare const isSamsungBrowser: boolean;
export declare const getSelectorsByUserAgent: (userAgent: string) => {
isSmartTV: boolean;
isConsole: boolean;
isWearable: boolean;
isEmbedded: boolean;
isMobileSafari: boolean | "";
isChromium: boolean;
isMobile: boolean;
isTablet: boolean | "";
isBrowser: boolean;
isDesktop: boolean;
isAndroid: boolean;
isWinPhone: boolean;
isIOS: boolean | "";
isChrome: boolean;
isFirefox: boolean;
isSafari: boolean;
isOpera: boolean;
isIE: boolean;
osVersion: string;
osName: string;
fullBrowserVersion: string;
browserVersion: string;
browserName: string;
mobileVendor: string;
mobileModel: string;
engineName: string;
engineVersion: string;
getUA: string;
isEdge: boolean;
isYandex: boolean;
isIOS13: boolean;
isIPad13: boolean | "";
isIPhone13: boolean | "";
isIPod13: boolean | "";
isElectron: boolean;
isEdgeChromium: boolean;
isLegacyEdge: boolean;
isWindows: boolean;
isMacOs: boolean;
isMIUI: boolean;
isSamsungBrowser: boolean;
isWebView: boolean;
isCrawler: boolean;
} | undefined;