AboutSupportDeveloper GuideVersion 1.5.0

Interface IndependentStrategy

An independent application launch and window discovery strategy for capturing top-level windows belonging to external applications that are launched independently of Snap, or optionally launching such applications if needed.

This strategy supports integration with applications outside the OpenFin ecosystem, including those launched via methods such as click-once or shell execution.

interface IndependentStrategy {
    alwaysLaunchNewInstance?: boolean;
    matchClassRegex?: string;
    matchNameRegex?: string;
    resizingBehavior?: ResizingBehavior;
    timeoutMs: number;
    type: "independent";
}

Properties

alwaysLaunchNewInstance?: boolean

If true, always launch a new application instance even if one or more instances exist. If false, only hook existing instances. Defaults to false.

matchClassRegex?: string

An optional (Rust-evaluated) regular expression string to match the window class against. If not provided, any window class will match. N.B. if both matchClassRegex and matchNameRegex are provided, then windows will need to match BOTH the caption AND class regexes.

matchNameRegex?: string

An optional (Rust-evaluated) regular expression string to match the window caption against. If not provided, any window caption will match. N.B. if both matchClassRegex and matchNameRegex are provided, then windows will need to match BOTH the caption AND class regexes.

resizingBehavior?: ResizingBehavior
timeoutMs: number

The timeout period milliseconds after which the window search will be abandoned

type