AboutSupportDeveloper GuideVersion 41.134.100.117

Conditional settings for a domain or set of domains.

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

Properties

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";
    screenCapture?: ScreenCaptureBehavior;
}

These features are still under development and may change.

Type declaration

  • Optional Experimentalclipboard?: ClipboardPermissions
  • Optional Experimentaldrag?: "allow" | "block"
    • Controls whether HTML5 dragging for this content is allowed or blocked.
  • Optional Experimentalprint?: "allow" | "block"

    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.

  • Optional ExperimentalscreenCapture?: ScreenCaptureBehavior
downloadSettings?: FileDownloadSettings

Domain-conditional rules for file downloads.

""