Class ChromiumMobileEmulationDeviceSettings
Represents the type-safe options for setting settings for emulating a mobile device in the Chromium browser.
public class ChromiumMobileEmulationDeviceSettings
- Inheritance
-
ChromiumMobileEmulationDeviceSettings
- Inherited Members
Constructors
ChromiumMobileEmulationDeviceSettings()
Initializes a new instance of the ChromiumMobileEmulationDeviceSettings class.
public ChromiumMobileEmulationDeviceSettings()
ChromiumMobileEmulationDeviceSettings(string)
Initializes a new instance of the ChromiumMobileEmulationDeviceSettings class.
public ChromiumMobileEmulationDeviceSettings(string userAgent)
Parameters
userAgent
stringThe user agent string to be used by the browser when emulating a mobile device.
Properties
EnableTouchEvents
Gets or sets a value indicating whether touch events should be enabled by the browser when emulating a mobile device. Defaults to true.
public bool EnableTouchEvents { get; set; }
Property Value
Height
Gets or sets the height in pixels to be used by the browser when emulating a mobile device.
public long Height { get; set; }
Property Value
PixelRatio
Gets or sets the pixel ratio to be used by the browser when emulating a mobile device.
public double PixelRatio { get; set; }
Property Value
UserAgent
Gets or sets the user agent string to be used by the browser when emulating a mobile device.
public string UserAgent { get; set; }
Property Value
Width
Gets or sets the width in pixels to be used by the browser when emulating a mobile device.
public long Width { get; set; }