UNPKG

@trlogic/tracker-web

Version:
17 lines (16 loc) 587 B
import { TrackerEventType } from "src/core/model/TrackerEventType"; import { TrackerVariableType } from "src/core/model/TrackerVariableType"; /** * Base interface for all event listeners. * Mirrors Android EventListener interface. */ export interface EventListener { /** Start monitoring for events. */ start(): void; /** Stop monitoring and clean up. */ stop(): void; /** The event types this listener can trigger. */ getTypes(): TrackerEventType[]; /** The variable types this listener contributes to. */ getVariableTypes(): TrackerVariableType[]; }