Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
blockly > blockRendering > Połączenie > (konstruktor)
blockRendering.Connection.(constructor)
Tworzy nową instancję klasy Connection
Podpis:
constructor(constants: ConstantProvider, connectionModel: RenderedConnection);
Parametry
| Parametr |
Typ |
Opis |
| stałe |
ConstantProvider |
Dostawca stałych renderowania. |
| connectionModel |
RenderedConnection |
Obiekt połączenia w bloku, który reprezentuje. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-25 UTC."],[],["The `Connection` class constructor takes two parameters: `constants` and `connectionModel`. `constants` is an instance of `ConstantProvider` and provides rendering constants. `connectionModel` represents the connection object on the block, and is of type `RenderedConnection`. This constructor creates a new instance of the `Connection` class. The `Connection` class is part of the `blockRendering` namespace.\n"]]