Stay organized with collections
Save and categorize content based on your preferences.
blockly > Connection > connect
Connection.connect() method
Connect this connection to another connection.
Signature:
connect(otherConnection: Connection): boolean;
Parameters
Parameter |
Type |
Description |
otherConnection |
Connection |
Connection to connect to. |
Returns:
boolean
Whether the blocks are now connected or not.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `connect()` method joins this connection to another specified connection."],["It takes one argument: the `otherConnection` which is the Connection object to connect to."],["The method returns `true` if the connection was successful, and `false` otherwise."]]],["The `connect` method of the `Connection` class links one connection to another. It takes `otherConnection`, an instance of the `Connection` class, as its parameter. The method's signature is `connect(otherConnection: Connection): boolean;`. It returns a boolean value indicating if the connection between the two blocks was successful, providing confirmation of the linkage.\n"]]