Webview
self:zoom
Client
Sets the zoom level of the webview
Syntax
local status = self:zoom(value)Parameters
| Type | Name | Description |
|---|---|---|
float | value | Zoom level to apply. 1.0 is the default zoom level |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, or false on failure |
Examples
local browser = webview.create()
--Reset to default zoom
browser:zoom(1.0)
--Zoom in
browser:zoom(1.5)
--Zoom out
browser:zoom(0.75)