Package-level declarations

Types

Link copied to clipboard
@Serializable
data class DispatchDragEventRequest(val type: DragEventType, val x: Double, val y: Double, val data: DragData, val modifiers: Int? = null)

Request object containing input parameters for the InputDomain.dispatchDragEvent command.

Link copied to clipboard
@Serializable
object DispatchDragEventResponse

A dummy response object for the InputDomain.dispatchDragEvent command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class DispatchKeyEventRequest(val type: KeyEventType, val modifiers: Int? = null, val timestamp: TimeSinceEpoch? = null, val text: String? = null, val unmodifiedText: String? = null, val keyIdentifier: String? = null, val code: String? = null, val key: String? = null, val windowsVirtualKeyCode: Int? = null, val nativeVirtualKeyCode: Int? = null, val autoRepeat: Boolean? = null, val isKeypad: Boolean? = null, val isSystemKey: Boolean? = null, val location: Int? = null, val commands: List<String>? = null)

Request object containing input parameters for the InputDomain.dispatchKeyEvent command.

Link copied to clipboard
@Serializable
object DispatchKeyEventResponse

A dummy response object for the InputDomain.dispatchKeyEvent command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class DispatchMouseEventRequest(val type: MouseEventType, val x: Double, val y: Double, val modifiers: Int? = null, val timestamp: TimeSinceEpoch? = null, val button: MouseButton? = null, val buttons: Int? = null, val clickCount: Int? = null, val force: Double? = null, val tangentialPressure: Double? = null, val tiltX: Int? = null, val tiltY: Int? = null, val twist: Int? = null, val deltaX: Double? = null, val deltaY: Double? = null, val pointerType: MouseEventPointerType? = null)

Request object containing input parameters for the InputDomain.dispatchMouseEvent command.

Link copied to clipboard
@Serializable
object DispatchMouseEventResponse

A dummy response object for the InputDomain.dispatchMouseEvent command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class DispatchTouchEventRequest(val type: TouchEventType, val touchPoints: List<TouchPoint>, val modifiers: Int? = null, val timestamp: TimeSinceEpoch? = null)

Request object containing input parameters for the InputDomain.dispatchTouchEvent command.

Link copied to clipboard
@Serializable
object DispatchTouchEventResponse

A dummy response object for the InputDomain.dispatchTouchEvent command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class DragData(val items: List<DragDataItem>, val files: List<String>? = null, val dragOperationsMask: Int)
Link copied to clipboard
@Serializable
data class DragDataItem(val mimeType: String, val data: String, val title: String? = null, val baseURL: String? = null)
Link copied to clipboard
@Serializable
enum DragEventType : Enum<DragEventType>

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard
@Serializable
data class EmulateTouchFromMouseEventRequest(val type: MouseEventType, val x: Int, val y: Int, val button: MouseButton, val timestamp: TimeSinceEpoch? = null, val deltaX: Double? = null, val deltaY: Double? = null, val modifiers: Int? = null, val clickCount: Int? = null)

Request object containing input parameters for the InputDomain.emulateTouchFromMouseEvent command.

Link copied to clipboard

A dummy response object for the InputDomain.emulateTouchFromMouseEvent command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
Link copied to clipboard
@Serializable
data class ImeSetCompositionRequest(val text: String, val selectionStart: Int, val selectionEnd: Int, val replacementStart: Int? = null, val replacementEnd: Int? = null)

Request object containing input parameters for the InputDomain.imeSetComposition command.

Link copied to clipboard
@Serializable
object ImeSetCompositionResponse

A dummy response object for the InputDomain.imeSetComposition command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
Link copied to clipboard
@Serializable
data class InsertTextRequest(val text: String)

Request object containing input parameters for the InputDomain.insertText command.

Link copied to clipboard
@Serializable
object InsertTextResponse

A dummy response object for the InputDomain.insertText command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
enum KeyEventType : Enum<KeyEventType>

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard
Link copied to clipboard

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard
@Serializable
enum MouseEventType : Enum<MouseEventType>

This enum doesn't have a proper description because it was generated from inline declarations. Its name was inferred based on the places where it is used:

Link copied to clipboard
@Serializable
data class SetIgnoreInputEventsRequest(val ignore: Boolean)

Request object containing input parameters for the InputDomain.setIgnoreInputEvents command.

Link copied to clipboard
@Serializable
object SetIgnoreInputEventsResponse

A dummy response object for the InputDomain.setIgnoreInputEvents command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SetInterceptDragsRequest(val enabled: Boolean)

Request object containing input parameters for the InputDomain.setInterceptDrags command.

Link copied to clipboard
@Serializable
object SetInterceptDragsResponse

A dummy response object for the InputDomain.setInterceptDrags command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SynthesizePinchGestureRequest(val x: Double, val y: Double, val scaleFactor: Double, val relativeSpeed: Int? = null, val gestureSourceType: GestureSourceType? = null)

Request object containing input parameters for the InputDomain.synthesizePinchGesture command.

Link copied to clipboard
@Serializable
object SynthesizePinchGestureResponse

A dummy response object for the InputDomain.synthesizePinchGesture command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SynthesizeScrollGestureRequest(val x: Double, val y: Double, val xDistance: Double? = null, val yDistance: Double? = null, val xOverscroll: Double? = null, val yOverscroll: Double? = null, val preventFling: Boolean? = null, val speed: Int? = null, val gestureSourceType: GestureSourceType? = null, val repeatCount: Int? = null, val repeatDelayMs: Int? = null, val interactionMarkerName: String? = null)

Request object containing input parameters for the InputDomain.synthesizeScrollGesture command.

Link copied to clipboard

A dummy response object for the InputDomain.synthesizeScrollGesture command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard
@Serializable
data class SynthesizeTapGestureRequest(val x: Double, val y: Double, val duration: Int? = null, val tapCount: Int? = null, val gestureSourceType: GestureSourceType? = null)

Request object containing input parameters for the InputDomain.synthesizeTapGesture command.

Link copied to clipboard
@Serializable
object SynthesizeTapGestureResponse

A dummy response object for the InputDomain.synthesizeTapGesture command. This command doesn't return any result at the moment, but this could happen in the future, or could have happened in the past. For forwards and backwards compatibility of the command method, we still declare this class even without properties.

Link copied to clipboard

UTC time in seconds, counted from January 1, 1970.

Official doc

Link copied to clipboard
@Serializable
enum TouchEventType : Enum<TouchEventType>

This enum doesn't have a proper description because it was generated from an inline declaration. Its name was inferred based on the place where it is used:

Link copied to clipboard
@Serializable
data class TouchPoint(val x: Double, val y: Double, val radiusX: Double? = null, val radiusY: Double? = null, val rotationAngle: Double? = null, val force: Double? = null, val tangentialPressure: Double? = null, val tiltX: Int? = null, val tiltY: Int? = null, val twist: Int? = null, val id: Double? = null)

Functions

Link copied to clipboard
suspend fun InputDomain.dispatchMouseClick(x: Double, y: Double, clickDurationMillis: Long = 100, button: MouseButton = MouseButton.left)

Simulates a mouse click on the given x and y coordinates. This uses a mousePressed and mouseReleased event in quick succession.