Table of Contents

Class EngineOptions.Builder

Namespace
DotNetBrowser.Engine
Assembly
DotNetBrowser.dll

A builder class to construct engine options.

public class EngineOptions.Builder
Inheritance
EngineOptions.Builder
Inherited Members

Remarks

Each of the properties modifies the state of the builder. Builders are not thread-safe and should not be used concurrently from multiple threads without external synchronization.

Properties

AutoplayEnabled

Enables or disables automatic video playback after page loading.

BinariesExtractionOptions

Gets or sets the options that are used to configure the Chromium binaries extraction process.

ChromiumDirectory

Gets or sets the absolute path to the directory where Chromium binaries are located or the empty string if it was not set.

ChromiumSwitches

Gets a set of the Chromium switches that will be passed to the Chromium Main process.

CrashDumpDirectory

Gets or sets the path that will be used to store automatically generated Chromium crash dumps.

DiskCacheSize

Gets or sets the disk cache size.

DnsOverHttpsDisabled

Disables the DNS over HTTPS (DoH) protocol.

FileAccessFromFilesAllowed

Allows or disallows the file access from files.

GoogleApiKey

Gets or sets the Google API key.

GoogleDefaultClientId

Gets or sets the Google client ID.

GoogleDefaultClientSecret

Gets or sets the Google client secret.

GpuDisabled

Disables or enables GPU.

IncognitoEnabled

Enables or disables the incognito mode for the IEngine instance.

Language

Gets or sets the Chromium language that is used on the default error pages and message dialogs.

LicenseKey

Gets or sets the license key.

MediaRoutingEnabled

Enables or disables the media routing.

By default, it is disabled.

NativeKeyboardInputEnabled

Enables keyboard events processing using native system API in .NET.

When not applied, the .NET keyboard listeners is used to collect key events, pre-handle them and dispatch to Chromium.

When applied, the OS-specific API is used to collect key events from .NET with subsequent dispatch to Chromium.

PasswordStore

Gets or sets the password store type which specifies the storage backend should be used to encrypt cookies on Linux.

ProprietaryFeatures

Gets or sets the proprietary features enabled for the IEngine instance. By default, all the proprietary features are disabled.

RemoteDebuggingPort

Gets or sets the remote debugging port.

RenderingMode

Gets or sets the rendering mode indicating how the content of the web pages will be rendered.

SandboxDisabled

Enables or disables the sandbox.

Schemes

Gets the dictionary of the schemes that will be intercepted.

TouchMenuDisabled

Enables or disables the touch popup menu.

UserAgent

Gets or sets the custom user agent string that is used to override the default user agent for the IEngine.

UserDataDirectory

Gets or sets an absolute path to the directory where the user data is stored.

WebSecurityDisabled

Enables or disables the same-origin policy.

Methods

Build()

Creates a EngineOptions instance.