blockly > Connessione > getParentAndChildConnections
Metodo Connection.getParentAndChildConnections()
Restituisce la connessione principale (superiore) e secondaria (inferiore) data questa connessione e la connessione a cui è connessa.
Firma:
protected getParentAndChildConnections(): {
parentConnection?: Connection;
childConnection?: Connection;
};
Resi:
{ parentConnection?: Connessione; childConnection?: Connessione; }
La connessione padre e la connessione secondaria, date questa connessione e la connessione a cui è connessa.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-08-29 UTC.
[null,null,["Ultimo aggiornamento 2024-08-29 UTC."],[[["The `getParentAndChildConnections()` method identifies and returns the parent and child connections relative to a given connection and its connected counterpart."],["It returns an object containing optional `parentConnection` and `childConnection` properties, which are instances of the `Connection` class."],["This method is designated as `protected`, suggesting its primary use is within the internal workings of Blockly rather than direct external usage."]]],["The `getParentAndChildConnections()` method identifies the parent and child connections within a linked pair. It returns an object containing two optional properties: `parentConnection` and `childConnection`, both of which are of the `Connection` type. This method determines the hierarchical relationship between two connected instances, indicating which is superior (parent) and which is inferior (child). It is a protected method and used internally within a class.\n"]]