self:is_autoplay

Client

Retrieves whether autoplay is enabled on the webview


Syntax

local result = self:is_autoplay()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
boolresulttrue if autoplay is enabled, false otherwise

Examples

Check if autoplay is enabled on a webview
local wv = webview.create()

engine.print("info", "Webview autoplay:", wv:is_autoplay())

On this page