public interface
CustomCategory
Known Indirect Subclasses |
Interface for custom BlocklyCategory
s, such as
and
VARIABLES
toolbox categories. Referenced by the
PROCEDURE
custom
XML attribute and the CUSTOM_CATEGORIES
.
initializeCategory(BlocklyCategory)
will be called once during load time, where the
implementation can configure the category as needed. This is different from the web
implementation of custom category generator functions that are called each time the toolbox
category is opened. The Android implementation allows better integration with RecycleViews
(notifying the Adapter of changes with individual add and remove calls) and always-open
toolboxes.
Public Method Summary
abstract void |
initializeCategory(BlocklyCategory category)
Called to initialize a BlocklyCategory, usually at the time the toolbox XML is loaded.
|
Public Methods
public abstract void initializeCategory (BlocklyCategory category)
Called to initialize a BlocklyCategory, usually at the time the toolbox XML is loaded. This method is called once in the lifetime of the category. If the category is dynamic, a reference to the category should be saved for future updates.
Parameters
category | The category to initialize. |
---|
Throws
BlockLoadingException |
---|