blockly > Events > BlockMove > setReason
Events.BlockMove.setReason() method
Set the reason for a move event.
Signature:
setReason(reason: string[]): void;
Parameters
Parameter |
Type |
Description |
reason |
string[] |
Why is this move happening? 'drag', 'bump', 'snap', ... |
Returns:
void
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."],[[["The `Events.BlockMove.setReason()` method allows you to specify the cause of a block move event, such as dragging, bumping, or snapping."],["It accepts a string array representing the reason for the move and does not return any value."]]],[]]