調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
ブロックする >入力 >入力 >makeConnection
この入力のソースブロックのタイプに基づいて接続を構築します。ヘッドレス ブロックのヘッドレス接続と、レンダリングされたブロックのレンダリングされた接続を適切に処理します。
署名:
protected makeConnection(type: ConnectionType): Connection;
パラメータ
戻り値:
接続
指定されたタイプの接続。この入力のソースブロックのタイプに基づいて、ヘッドレス接続またはレンダリング接続になります。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-22 UTC。
[null,null,["最終更新日 2024-08-22 UTC。"],[[["The `inputs.Input.makeConnection()` method creates a connection for a block input, determining whether it's headless or rendered based on the block's type."],["It takes a `ConnectionType` as a parameter to specify the type of connection to be created."],["The method returns a `Connection` object, representing either a headless or rendered connection, ready for block interactions."]]],[]]