ismobilejs-es5
Version:
A simple JS library that detects mobile devices.
36 lines (35 loc) • 653 B
TypeScript
export declare type isMobileResult = {
apple: {
phone: boolean;
ipod: boolean;
tablet: boolean;
device: boolean;
};
amazon: {
phone: boolean;
tablet: boolean;
device: boolean;
};
android: {
phone: boolean;
tablet: boolean;
device: boolean;
};
windows: {
phone: boolean;
tablet: boolean;
device: boolean;
};
other: {
blackberry: boolean;
blackberry10: boolean;
opera: boolean;
firefox: boolean;
chrome: boolean;
device: boolean;
};
phone: boolean;
tablet: boolean;
any: boolean;
};
export default function isMobile(userAgent?: string): isMobileResult;