IPointerInputDetector

interface

Namespace: Vuplex.WebView

An interface that can be passed to WebViewPrefab.SetPointerInputDetector() or CanvasWebViewPrefab.SetPointerInputDetector() to override how the prefab detects pointer input. For example implementations of this interface, please see 3D WebView's DefaultPointerInputDetector.cs and CanvasPointerInputDetector.cs scripts.

Summary

Public properties

Public properties

PointerMovedEnabled

bool PointerMovedEnabled

The prefab sets this property to indicate whether the PointerMoved event should be enabled.

Public events

BeganDrag

EventHandler<EventArgs<Vector2>> BeganDrag

Indicates the beginning of a drag interaction.

The x and y components of the point are values in the range of [0, 1] that are normalized to the webview's width and height. For example, point.x = xInPixels / webView.SizeInPixels.x. Like in the browser, the origin is in the upper-left corner, the positive direction of the y-axis is down, and the positive direction of the x-axis is right.

Dragged

EventHandler<EventArgs<Vector2>> Dragged

Indicates the continuation of a drag interaction.

The x and y components of the point are values in the range of [0, 1] that are normalized to the webview's width and height. For example, point.x = xInPixels / webView.SizeInPixels.x. Like in the browser, the origin is in the upper-left corner, the positive direction of the y-axis is down, and the positive direction of the x-axis is right.

PointerDown

EventHandler<PointerEventArgs> PointerDown

Indicates a pointer down interaction occurred.

PointerExited

EventHandler PointerExited

Indicates that the pointer exited.

PointerMoved

EventHandler<EventArgs<Vector2>> PointerMoved

Indicates that the pointer moved.

The x and y components of the point are values in the range of [0, 1] that are normalized to the webview's width and height. For example, point.x = xInPixels / webView.SizeInPixels.x. Like in the browser, the origin is in the upper-left corner, the positive direction of the y-axis is down, and the positive direction of the x-axis is right.

PointerUp

EventHandler<PointerEventArgs> PointerUp

Indicates a pointer up interaction occurred.

Scrolled

EventHandler<ScrolledEventArgs> Scrolled

Indicates a scroll interaction occurred.