AboutSupportDeveloper GuideVersion 38.126.83.74

Interface ViewsPreventingUnloadPayload

Represents the payload shape for Views that are trying to prevent an unload.

interface ViewsPreventingUnloadPayload {
    closeType: "view" | "window";
    viewsNotPreventingUnload: Identity[];
    viewsPreventingUnload: Identity[];
    windowId: Identity;
    windowShouldClose: boolean;
}

Properties

closeType: "view" | "window"

Source of the close action.

viewsNotPreventingUnload: Identity[]

Identities of the Views that are not preventing an unload

viewsPreventingUnload: Identity[]

Identities of the Views that are preventing an unload

windowId: Identity

Identity of the Window.

windowShouldClose: boolean

Specifies if the Window should close.