blockly > Blocca > getDisabledReasons
Metodo Block.getDisabledReasons()
Scopri una serie di motivi per cui il blocco è attualmente disattivato, se presente. Se il blocco è attivato, questo insieme sarà vuoto.
Firma:
getDisabledReasons(): ReadonlySet<string>;
Resi:
ReadonlySet<string>
L'insieme di motivi per cui il blocco è stato disattivato, se presente.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-08-21 UTC.
[null,null,["Ultimo aggiornamento 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"]]