DeviceClipboard
Namespace: Wisej.Hybrid
Assembly: Wisej.Hybrid
Provides a convenient interface for interacting with the device's clipboard, allowing you to access and manipulate text content.
- C#
- VB.NET
public class DeviceClipboard
Public Class DeviceClipboard
Access this class through the Device singleton.
Constructors
DeviceClipboard()
Initializes a new instance of the DeviceClipboard class and sets up clipboard event handling.
Properties
HasText
Boolean: Gets a value indicating whether the device's clipboard contains text content.
Methods
GetText()
Retrieves text from the device's clipboard.
Returns: String. The text content from the clipboard.
SetText(text)
Sets the provided text into the device's clipboard.
| Parameter | Type | Description |
|---|---|---|
| text | String | The text to be copied to the clipboard. |
Events
ContentChanged
EventHandler Occurs when the content in the device's clipboard changes.