blockly > Zablokuj > getDisabledReasons
Metoda Block.getDisabledReasons()
Jeśli tak, podaj ewentualne powody, dla których blokada jest obecnie wyłączona. Jeśli blok jest włączony, zestaw jest pusty.
Podpis:
getDisabledReasons(): ReadonlySet<string>;
Zwroty:
ReadonlySet<string>
Zestaw powodów, dla których blokada została wyłączona (jeśli istnieją).
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2024-08-21 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]