Survei Riset: Ceritakan pengalaman Anda dengan Blockly
Mulai survei
blockly > Menu > dispose
Buang menu ini.
Tanda Tangan:
dispose(): void;
Hasil:
void
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-11-30 UTC.
[null,null,["Terakhir diperbarui pada 2024-11-30 UTC."],[[["The `dispose()` method is used to dispose of a Blockly menu."],["Calling this method will remove the menu from the display and clean up any associated resources."],["The method has no return value (void)."],["The method is accessed using the `Menu` class in Blockly, through: `Menu.dispose()`."]]],["The `Menu.dispose()` method is used to remove or clean up a menu object. Its primary function is to dispose of the menu, essentially freeing up resources it was using. The method's signature, `dispose(): void`, indicates it does not accept any parameters and does not return any value. This action is essential for memory management when a menu is no longer needed.\n"]]