Skip to main content

DeviceScreen

Namespace: Wisej.Hybrid

Assembly: Wisej.Hybrid

Provides methods for interacting with the device's screen, including taking screenshots and screen recording.

public class DeviceScreen

Access this class through the Device singleton.

Constructors​

Instance memberDeviceScreen()​

Initializes a new instance of DeviceScreen.

Methods​

Instance memberCapturePhoto()​

Takes a screenshot of the device's screen.

Returns: Image. An Image representing the captured screenshot.

Note: There may be issues in Windows as documented here: https://github.com/MicrosoftEdge/WebView2Feedback/issues/2799

Instance memberStartRecording(microphone)​

Starts recording the device's screen.

ParameterTypeDescription
microphone optionalBooleanIndicates whether to include audio in the screen recording.

Returns: Boolean. True if screen recording started successfully; otherwise, false.

Instance memberStopRecording()​

Stops recording the device's screen.

Events​

Instance memberRecording​

EventHandler<MemoryStream> Occurs when a video stream from the device's screen is received.