Click or drag to resize

EmulationClientSetDeviceMetricsOverrideAsync Method

Version 86.0.240

[Missing <summary> documentation for "M:CefSharp.DevTools.Emulation.EmulationClient.SetDeviceMetricsOverrideAsync(System.Int32,System.Int32,System.Int64,System.Boolean,System.Nullable{System.Int64},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Boolean},CefSharp.DevTools.Emulation.ScreenOrientation,CefSharp.DevTools.Page.Viewport,CefSharp.DevTools.Emulation.DisplayFeature)"]

Namespace:  CefSharp.DevTools.Emulation
Assembly:  CefSharp (in CefSharp.dll) Version: 86.0.240.0 (86.0.240.0)
Syntax
public Task<DevToolsMethodResponse> SetDeviceMetricsOverrideAsync(
	int width,
	int height,
	long deviceScaleFactor,
	bool mobile,
	Nullable<long> scale = null,
	Nullable<int> screenWidth = null,
	Nullable<int> screenHeight = null,
	Nullable<int> positionX = null,
	Nullable<int> positionY = null,
	Nullable<bool> dontSetVisibleSize = null,
	ScreenOrientation screenOrientation = null,
	Viewport viewport = null,
	DisplayFeature displayFeature = null
)

Parameters

width
Type: SystemInt32

[Missing <param name="width"/> documentation for "M:CefSharp.DevTools.Emulation.EmulationClient.SetDeviceMetricsOverrideAsync(System.Int32,System.Int32,System.Int64,System.Boolean,System.Nullable{System.Int64},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Boolean},CefSharp.DevTools.Emulation.ScreenOrientation,CefSharp.DevTools.Page.Viewport,CefSharp.DevTools.Emulation.DisplayFeature)"]

height
Type: SystemInt32

[Missing <param name="height"/> documentation for "M:CefSharp.DevTools.Emulation.EmulationClient.SetDeviceMetricsOverrideAsync(System.Int32,System.Int32,System.Int64,System.Boolean,System.Nullable{System.Int64},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Boolean},CefSharp.DevTools.Emulation.ScreenOrientation,CefSharp.DevTools.Page.Viewport,CefSharp.DevTools.Emulation.DisplayFeature)"]

deviceScaleFactor
Type: SystemInt64

[Missing <param name="deviceScaleFactor"/> documentation for "M:CefSharp.DevTools.Emulation.EmulationClient.SetDeviceMetricsOverrideAsync(System.Int32,System.Int32,System.Int64,System.Boolean,System.Nullable{System.Int64},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Boolean},CefSharp.DevTools.Emulation.ScreenOrientation,CefSharp.DevTools.Page.Viewport,CefSharp.DevTools.Emulation.DisplayFeature)"]

mobile
Type: SystemBoolean

[Missing <param name="mobile"/> documentation for "M:CefSharp.DevTools.Emulation.EmulationClient.SetDeviceMetricsOverrideAsync(System.Int32,System.Int32,System.Int64,System.Boolean,System.Nullable{System.Int64},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Boolean},CefSharp.DevTools.Emulation.ScreenOrientation,CefSharp.DevTools.Page.Viewport,CefSharp.DevTools.Emulation.DisplayFeature)"]

scale (Optional)
Type: SystemNullableInt64

[Missing <param name="scale"/> documentation for "M:CefSharp.DevTools.Emulation.EmulationClient.SetDeviceMetricsOverrideAsync(System.Int32,System.Int32,System.Int64,System.Boolean,System.Nullable{System.Int64},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Boolean},CefSharp.DevTools.Emulation.ScreenOrientation,CefSharp.DevTools.Page.Viewport,CefSharp.DevTools.Emulation.DisplayFeature)"]

screenWidth (Optional)
Type: SystemNullableInt32

[Missing <param name="screenWidth"/> documentation for "M:CefSharp.DevTools.Emulation.EmulationClient.SetDeviceMetricsOverrideAsync(System.Int32,System.Int32,System.Int64,System.Boolean,System.Nullable{System.Int64},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Boolean},CefSharp.DevTools.Emulation.ScreenOrientation,CefSharp.DevTools.Page.Viewport,CefSharp.DevTools.Emulation.DisplayFeature)"]

screenHeight (Optional)
Type: SystemNullableInt32

[Missing <param name="screenHeight"/> documentation for "M:CefSharp.DevTools.Emulation.EmulationClient.SetDeviceMetricsOverrideAsync(System.Int32,System.Int32,System.Int64,System.Boolean,System.Nullable{System.Int64},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Boolean},CefSharp.DevTools.Emulation.ScreenOrientation,CefSharp.DevTools.Page.Viewport,CefSharp.DevTools.Emulation.DisplayFeature)"]

positionX (Optional)
Type: SystemNullableInt32

[Missing <param name="positionX"/> documentation for "M:CefSharp.DevTools.Emulation.EmulationClient.SetDeviceMetricsOverrideAsync(System.Int32,System.Int32,System.Int64,System.Boolean,System.Nullable{System.Int64},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Boolean},CefSharp.DevTools.Emulation.ScreenOrientation,CefSharp.DevTools.Page.Viewport,CefSharp.DevTools.Emulation.DisplayFeature)"]

positionY (Optional)
Type: SystemNullableInt32

[Missing <param name="positionY"/> documentation for "M:CefSharp.DevTools.Emulation.EmulationClient.SetDeviceMetricsOverrideAsync(System.Int32,System.Int32,System.Int64,System.Boolean,System.Nullable{System.Int64},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Boolean},CefSharp.DevTools.Emulation.ScreenOrientation,CefSharp.DevTools.Page.Viewport,CefSharp.DevTools.Emulation.DisplayFeature)"]

dontSetVisibleSize (Optional)
Type: SystemNullableBoolean

[Missing <param name="dontSetVisibleSize"/> documentation for "M:CefSharp.DevTools.Emulation.EmulationClient.SetDeviceMetricsOverrideAsync(System.Int32,System.Int32,System.Int64,System.Boolean,System.Nullable{System.Int64},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Boolean},CefSharp.DevTools.Emulation.ScreenOrientation,CefSharp.DevTools.Page.Viewport,CefSharp.DevTools.Emulation.DisplayFeature)"]

screenOrientation (Optional)
Type: CefSharp.DevTools.EmulationScreenOrientation

[Missing <param name="screenOrientation"/> documentation for "M:CefSharp.DevTools.Emulation.EmulationClient.SetDeviceMetricsOverrideAsync(System.Int32,System.Int32,System.Int64,System.Boolean,System.Nullable{System.Int64},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Boolean},CefSharp.DevTools.Emulation.ScreenOrientation,CefSharp.DevTools.Page.Viewport,CefSharp.DevTools.Emulation.DisplayFeature)"]

viewport (Optional)
Type: CefSharp.DevTools.PageViewport

[Missing <param name="viewport"/> documentation for "M:CefSharp.DevTools.Emulation.EmulationClient.SetDeviceMetricsOverrideAsync(System.Int32,System.Int32,System.Int64,System.Boolean,System.Nullable{System.Int64},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Boolean},CefSharp.DevTools.Emulation.ScreenOrientation,CefSharp.DevTools.Page.Viewport,CefSharp.DevTools.Emulation.DisplayFeature)"]

displayFeature (Optional)
Type: CefSharp.DevTools.EmulationDisplayFeature

[Missing <param name="displayFeature"/> documentation for "M:CefSharp.DevTools.Emulation.EmulationClient.SetDeviceMetricsOverrideAsync(System.Int32,System.Int32,System.Int64,System.Boolean,System.Nullable{System.Int64},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Boolean},CefSharp.DevTools.Emulation.ScreenOrientation,CefSharp.DevTools.Page.Viewport,CefSharp.DevTools.Emulation.DisplayFeature)"]

Return Value

Type: TaskDevToolsMethodResponse

[Missing <returns> documentation for "M:CefSharp.DevTools.Emulation.EmulationClient.SetDeviceMetricsOverrideAsync(System.Int32,System.Int32,System.Int64,System.Boolean,System.Nullable{System.Int64},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Int32},System.Nullable{System.Boolean},CefSharp.DevTools.Emulation.ScreenOrientation,CefSharp.DevTools.Page.Viewport,CefSharp.DevTools.Emulation.DisplayFeature)"]

See Also