blockly > Blockieren > getDisabledReasons
Methode Block.getDisabledReasons()
Rufen Sie gegebenenfalls eine Reihe von Gründen ab, warum die Blockierung derzeit deaktiviert ist. Wenn der Block aktiviert ist, ist dieser Satz leer.
Unterschrift:
getDisabledReasons(): ReadonlySet<string>;
Gibt zurück:
ReadonlySet<string>
Die Gruppe der Gründe für die Deaktivierung der Blockierung, falls vorhanden.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-08-21 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-08-21 (UTC)."],[[["The `getDisabledReasons()` method returns a set of strings explaining why a block is disabled."],["If the block is enabled, the method returns an empty set."],["This method is helpful for understanding the current state of a block and identifying potential issues."]]],["The `Block.getDisabledReasons()` method retrieves a read-only set of strings detailing why a block is disabled. If the block is enabled, this set is empty. The method's signature is `getDisabledReasons(): ReadonlySet\u003cstring\u003e`. It returns a `ReadonlySet\u003cstring\u003e` containing the reasons for the block's disabled state.\n"]]