Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["`callback` is a property of the `LegacyContextMenuOption` interface within Blockly's `ContextMenuRegistry` namespace."],["It defines a function that is executed when the associated context menu option is selected."],["This function takes a `Scope` object as its only parameter, which provides context about the action being performed."],["Its primary purpose is to implement the behavior associated with the specific context menu item."]]],["The `callback` property within `ContextMenuRegistry.LegacyContextMenuOption` is defined. It represents a function that accepts one parameter, `p1` of type `Scope`. This function, when invoked, executes a specific action. Its return type is `void`, indicating it does not return any value. In essence, `callback` is designed to perform a task triggered by a context menu option, utilizing a given `Scope`.\n"]]