blockly > Conexão > getParentAndChildConnections
Método Connection.getParentAndChildConnections()
Retorna a conexão pai (superior) e filha (inferior) de acordo com essa conexão e a conexão a que ela está conectada.
Signature:
protected getParentAndChildConnections(): {
parentConnection?: Connection;
childConnection?: Connection;
};
Retorna:
{ parentConnection?: Conexão childConnection?: Conexão }
A conexão mãe e a conexão filha de acordo com essa conexão e a conexão a que ela está conectada.
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2024-08-29 UTC.
[null,null,["Última atualização 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"]]