با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
blockly > Input > makeConnection
بر اساس نوع بلوک منبع این ورودی، یک اتصال ایجاد می کند. به درستی ساخت اتصالات هدلس برای بلوک های هدلس و اتصالات رندر شده برای بلوک های رندر شده را مدیریت می کند.
امضا:
protected makeConnection(type: ConnectionType): Connection;
پارامترها
برمیگرداند:
اتصال
یک اتصال از نوع داده شده، که یا یک اتصال بدون هد یا رندر است، بر اساس نوع بلوک منبع این ورودی.
،
blockly > Input > makeConnection
بر اساس نوع بلوک منبع این ورودی، یک اتصال ایجاد می کند. به درستی ساخت اتصالات هدلس برای بلوک های هدلس و اتصالات رندر شده برای بلوک های رندر شده را مدیریت می کند.
امضا:
protected makeConnection(type: ConnectionType): Connection;
پارامترها
برمیگرداند:
اتصال
یک اتصال از نوع داده شده، که یا یک اتصال بدون هد یا رندر است، بر اساس نوع بلوک منبع این ورودی.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["The `Input.makeConnection()` method creates a Connection object, either headless or rendered, matching the input's source block type."],["It uses the provided `ConnectionType` to determine the type of connection to construct."],["This method is primarily used internally for building connections between blocks within Blockly."]]],["The `Input.makeConnection()` method creates a connection, adapting to the source block's type. It accepts a `ConnectionType` parameter and returns a `Connection` object. This method intelligently determines whether to construct a headless connection for headless blocks or a rendered connection for rendered blocks. The core action is to generate the appropriate connection based on the block type.\n"]]