調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
ブロックする >接続 >再接続
Connection.reconnect() メソッド
指定されたブロックで指定された名前の入力に、この接続を再接続します。その入力に接続がすでにある場合、その接続は切断されます。
署名:
reconnect(block: Block, inputName: string): boolean;
パラメータ
パラメータ |
型 |
説明 |
ブロック |
ブロック |
この接続の接続先のブロック。 |
inputName |
文字列 |
この接続を接続する入力の名前。 |
戻り値:
ブール値
この接続が接続できた場合は true、それ以外の場合は false。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-22 UTC。
[null,null,["最終更新日 2024-08-22 UTC。"],[[["The `reconnect()` method attempts to connect this connection to a specified input on a given block."],["If the target input is already occupied, the existing connection is disconnected before the new connection is established."],["The method returns `true` if the connection was successful, and `false` otherwise."]]],[]]