self:reset_message_handler

Client

Removes the previously registered message handler from the webview


Syntax

local status = self:reset_message_handler()

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Reset a message handler on a webview
local entity = core.webview.create()

entity:set_message_handler(function(message)
    core.engine.print("info", "Received message:", message)
end)

entity:reset_message_handler()

On this page