userdnajs
Version:
Community edition of UserDNA JS. A fingerprint generator library for creating unique user identifiers
29 lines (28 loc) • 820 B
TypeScript
import { ScreenInfo } from '../types';
/**
* Gets screen information for fingerprinting
* @returns Screen information
*/
export declare function getScreenInfo(): ScreenInfo;
/**
* Gets the orientation type of the device
* @returns Orientation type
*/
export declare function getOrientationType(): string;
/**
* Generates an enhanced screen info object including orientation
* @returns Enhanced screen information
*/
export declare function getEnhancedScreenInfo(): ScreenInfo & {
orientation: string;
};
/**
* Checks if the screen is a touch-enabled device
* @returns Whether touch is available
*/
export declare function isTouchDevice(): boolean;
/**
* Gets a fingerprint value based on screen properties
* @returns Screen fingerprint value
*/
export declare function getScreenFingerprint(): string;