@flagship.io/js-sdk
Version:
28 lines (27 loc) • 1.41 kB
TypeScript
import { ConstructorParam } from '../type.local';
import { CommonEmotionAI } from './CommonEmotionAI';
export declare class EmotionAI extends CommonEmotionAI {
protected onScroll: (event: Event) => void;
protected onMouseMove: (event: MouseEvent) => void;
protected onMouseDown: (event: MouseEvent) => void;
protected onMouseUp: (event: MouseEvent) => void;
protected onPopState: (event: PopStateEvent) => void;
protected _originalPushState: typeof window.history.pushState;
protected _originalReplaceState: typeof window.history.replaceState;
protected _clickPath: string;
protected scrollTimeoutId: number | null;
protected readonly scrollEndDelay: number;
protected _clickPathTimeoutId: number | null;
protected _lastPageViewLocation?: string;
constructor(params: ConstructorParam);
cleanup(): void;
getDeviceCategory(): string;
protected processPageView(visitorId: string): Promise<void>;
protected startCollectingEAIData(visitorId: string): Promise<void>;
protected removeListeners(): void;
protected onScrollEnd(visitorId: string): void;
protected handleScroll: (visitorId: string) => void;
protected sendClickPath(visitorId: string): void;
protected handleMouseMove: (event: MouseEvent, visitorId: string) => void;
protected handleClick: (event: MouseEvent, visitorId: string, clickDuration: number) => void;
}