AboutSupportDeveloper GuideVersion 47.154.100.2
OpenFin JavaScript API
    Preparing search index...

    Interface PerDomainSettings

    Conditional settings for a domain or set of domains.

    interface PerDomainSettings {
        api?: DomainApiSettings;
        appLogLevel?: AppLogLevel;
        chromiumPolicies?: ChromiumPolicies;
        content?: ContentPermission;
        contentProtection?: {
            clipboard?: ClipboardPermissions;
            drag?: "allow" | "block";
            print?: "allow" | "block" | PrintPermission;
            screenCapture?: ScreenCaptureBehavior;
        };
        downloadSettings?: FileDownloadSettings;
        preloadScripts?: DomainSettingsPreloadScripts;
        urlRestore?: UrlRestoreSettings;
    }
    Index
    appLogLevel?: AppLogLevel

    Allows the app log level of any matching content to be overriden. See also AppLogLevel for more information.

    chromiumPolicies?: ChromiumPolicies

    Whether DOM content can be loaded (by navigation or redirect).

    If this is included in DomainSettings.default, then ContentNavigation and ContentRedirect in WindowOptions and ViewOptions will be ignored.

    contentProtection?: {
        clipboard?: ClipboardPermissions;
        drag?: "allow" | "block";
        print?: "allow" | "block" | PrintPermission;
        screenCapture?: ScreenCaptureBehavior;
    }

    These features are still under development and may change.

    Type Declaration

    • Optionalclipboard?: ClipboardPermissions
    • Optionaldrag?: "allow" | "block"
      • Controls whether HTML5 dragging for this content is allowed or blocked.
    • Optionalprint?: "allow" | "block" | PrintPermission

      Whether the content can be printed. Defaults to 'allow'. Disables the print option in the context menu, and prevents printing via both OpenFin and browser APIs.

    • OptionalscreenCapture?: ScreenCaptureBehavior
    downloadSettings?: FileDownloadSettings

    Domain-conditional rules for file downloads.

    urlRestore?: UrlRestoreSettings

    When the live URL matches this rule, remap inbound View.ViewModule.navigate View.navigate / Window.WindowModule.navigate Window.navigate to UrlRestoreSettings.url.