AboutSupportDeveloper GuideVersion 44.144.100.59

Generated when a window enters or exits a snap zone during drag. This event fires whenever the snap zone state changes (entry or exit).

interface SnapZoneChangedEvent {
    locations: ("top" | "bottom")[];
    name: string;
    topic: "window";
    type: "snap-zone-changed";
    uuid: string;
}

Properties

locations: ("top" | "bottom")[]

Array of locations that the window is currently in snap zones for. Empty array indicates the window is not in any snap zone. Can contain multiple locations if the window is in multiple zones simultaneously.

name: string
topic: "window"

The "kebab-case" classname of the emitter that raised the event.

OpenFin.Frame is represented as iframe.

type: "snap-zone-changed"

The type of event that was raised. Equal to the typename of the event payload in "kebab case".

Guaranteed to be unique within each topic, but can be repeated between topics (e.g. WebContentsEvents.CrashedEvent and ApplicationEvents.CrashedEvent).

uuid: string