@scandit/web-barcode-link
Version:
The Scandit Web Barcode Link package
20 lines (19 loc) • 652 B
TypeScript
export declare class BrowserHelper {
/**
* @returns Whether the device is a desktop/laptop for sure.
*/
static isDesktopDevice(): boolean;
static isIpad(userAgent: string): boolean;
/**
* @returns The browser version in lower case, or empty string if not found.
*/
static getBrowserName(userAgent?: string): string;
/**
* @returns The browser version in lower case, or empty string if not found.
*/
static getBrowserVersion(userAgent?: string): string;
/**
* @returns The current origin from window.location, or empty string if not available.
*/
static getOrigin(): string;
}