Interface OpenRequestPayload

Payload object for opening a file.

interface OpenRequestPayload {
    canvasCorrelationId?: string;
    canvasInView?: boolean;
    context?: Record<string, any>;
    fileId?: string;
    files?: { ids: string[]; strategy: "simultaneous" | "swap" };
    fromCanvasId?: string;
    isInCall?: boolean;
    isOverlayApp?: boolean;
    newTab?: boolean;
    pageIndex?: number;
    search?: string;
    startTime?: number;
    url?: null | string;
    usedInSectionId?: string;
}

Properties

canvasCorrelationId?: string

Tracking id for the canvas presentation session.

canvasInView?: boolean

Indicates if the canvas is in view.

context?: Record<string, any>

Optional, overrides over the context of the current canvas, useful for injecting file annotation data. Default is {}.

fileId?: string

Id of the file to open.

files?: { ids: string[]; strategy: "simultaneous" | "swap" }

Ids of the files to open and the strategy to open them with.

fromCanvasId?: string

Id of the canvas from which the file is opened.

isInCall?: boolean

Indicates if the user is in a call.

isOverlayApp?: boolean

Indicates if the app should be opened as overlay.

newTab?: boolean

Indicates if the file should be opened in a new tab.

pageIndex?: number

Optional, page index to open. Default is null.

search?: string

Search query string within the file.

startTime?: number

Optional, video start timestamp in seconds. Default is null.

url?: null | string

URL of the file content.

usedInSectionId?: string

Id of the canvas section from which the file is opened.