self:get_position

Client

Retrieves the current position of the webview


Syntax

local position = self:get_position()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
vector2positionPosition of the webview as {x, y}

Examples

Get the position of a webview
local wv = webview.create()
local position = wv:get_position()

engine.print("info", "Webview position:", position[1], position[2])

On this page