VirtualKeyboardProvider Class
The on-screen keyboard of the device (https://w3c.github.io/virtual-keyboard/), read by navigator.virtualKeyboard, of the browsing contexts that share a BrowsingContextOptions (VirtualKeyboardOptions.Provider). Set VirtualKeyboardProvider.BoundingRect when the keyboard is shown, moved or hidden: the documents update their boundingRect and fire their geometrychange events.
public class VirtualKeyboardProviderRemarks
A provider can be shared by several browsing contexts, and used from any thread.
Constructors
| Name | Description |
|---|---|
| VirtualKeyboardProvider() |
VirtualKeyboardProvider()
VirtualKeyboard.cspublic VirtualKeyboardProvider()No documentation is available.
Properties
| Name | Description |
|---|---|
| BoundingRect | Gets or sets the rectangle of the keyboard, relative to the viewport of the top-level documents (empty when the keyboard is hidden, the default). Setting it updates the VirtualKeyboard objects of the documents, which fire their geometrychange events. |
BoundingRect
VirtualKeyboard.csGets or sets the rectangle of the keyboard, relative to the viewport of the top-level documents (empty when the keyboard is hidden, the default). Setting it updates the VirtualKeyboard objects of the documents, which fire their geometrychange events.
public VirtualKeyboardRect BoundingRect { get; set; }Property value
Methods
| Name | Description |
|---|---|
| GetBoundingRect() | Returns the rectangle of the keyboard. The default implementation returns VirtualKeyboardProvider.BoundingRect. It is called on the thread of an event loop, and must not block it. |
| OnGeometryChanged() | Raises VirtualKeyboardProvider.GeometryChanged, then reads the rectangle again for the VirtualKeyboard objects of the documents, which fire their geometrychange events. It can be called from any thread. |
GetBoundingRect()
VirtualKeyboard.csReturns the rectangle of the keyboard. The default implementation returns VirtualKeyboardProvider.BoundingRect. It is called on the thread of an event loop, and must not block it.
public virtual VirtualKeyboardRect GetBoundingRect()Returns
OnGeometryChanged()
VirtualKeyboard.csRaises VirtualKeyboardProvider.GeometryChanged, then reads the rectangle again for the VirtualKeyboard objects of the documents, which fire their geometrychange events. It can be called from any thread.
protected void OnGeometryChanged()Events
| Name | Description |
|---|---|
| GeometryChanged | Raised when the geometry of the keyboard changes (VirtualKeyboardProvider.OnGeometryChanged). |
GeometryChanged
Raised when the geometry of the keyboard changes (VirtualKeyboardProvider.OnGeometryChanged).
public event EventHandler? GeometryChanged