blockly > حظر > doInit_
طريقة Block.doInit_()
تستدعي الدالة init() ويتعامل مع تنشيط الحدث المرتبط، وما إلى ذلك.
Signature:
protected doInit_(): void;
المرتجعات:
فراغ
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-08-21 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-08-21 (حسب التوقيت العالمي المتفَّق عليه)"],[[["`doInit_()` is a protected method that initializes a block and manages related events."],["This method invokes the `init()` function and ensures proper event handling during block initialization."],["It returns void, indicating that it does not produce a value directly."]]],["The `Block.doInit_()` method triggers the `init()` function within a block and manages related event processes. This method is protected and returns no value (void). Its primary function is to initialize a block and ensure the necessary events are fired accordingly.\n"]]