vue3-game-analytics
Version:
Comprehensive analytics tracking system for Vue 3 game applications
40 lines (39 loc) • 1.04 kB
TypeScript
/**
* Utilities for collecting environment and device information
*/
/**
* Gets information about the browser and device
* @returns Object containing environment data
*/
export declare function getEnvironmentData(): {
deviceType?: undefined;
browser?: undefined;
os?: undefined;
screenResolution?: undefined;
orientation?: undefined;
connectionType?: undefined;
language?: undefined;
userAgent?: undefined;
doNotTrack?: undefined;
timeZone?: undefined;
} | {
deviceType: string;
browser: string;
os: string;
screenResolution: string;
orientation: string;
connectionType: string;
language: string;
userAgent: string;
doNotTrack: string;
timeZone: string;
};
/**
* Sets up network status monitoring
* @param callback Function to call when network status changes
* @returns Function to remove event listeners
*/
export declare function monitorNetworkStatus(callback: (status: {
isOnline: boolean;
connectionType: string;
}) => void): () => void;