Skip to main content

Home > blockly > serialization > exceptions > UnregisteredIcon > (constructor)

serialization.exceptions.UnregisteredIcon.(constructor)

Constructs a new instance of the UnregisteredIcon class

Signature:

constructor(iconType: string, block: Block, state: State);

Parameters

ParameterTypeDescription
iconTypestringThe type of the unregistered icon we are attempting to deserialize.
blockBlockThe block we are attempting to add the unregistered icon to.
stateStateThe state object representing the block.