Interface WindowInfo

Information about a window that is present at a point in time within a recording.

Mirrors the Swift RKWindowInfo struct (the present case of RKWindowPresence).

interface WindowInfo {
    type: "present";
    time: EventTime;
    windowID: number;
    windowTitle?: string;
    spaceID?: number;
    applicationID?: number;
    applicationName?: string;
    x: number;
    y: number;
    width: number;
    height: number;
}

Properties

type: "present"
time: EventTime

Time the event occurred in the recording.

windowID: number

ID of the window.

windowTitle?: string

Title of the window.

spaceID?: number

ID of the macOS Space where this window lives (can be used to detect space changes).

Remarks

Mirrors a Swift UInt64; for very large Space IDs this can exceed JavaScript's Number.MAX_SAFE_INTEGER. (WindowInfo.windowID and WindowInfo.applicationID are 32-bit and not affected.)

applicationID?: number

ID of the application the window belongs to.

applicationName?: string

Title of the application the window belongs to.

x: number

X-axis position of the window relative to the top left of recorded area, ranging from 0 to 1.

y: number

Y-axis position of the window relative to the top left of recorded area, ranging from 0 to 1.

width: number

Width of the window relative to the top left of recorded area, ranging from 0 to 1.

height: number

Height of the window relative to the top left of recorded area, ranging from 0 to 1.

Generated using TypeDoc