Skip to main content

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

Parameter

Type

Description

iconType

string

The type of the unregistered icon we are attempting to deserialize.

block

Block

The block we are attempting to add the unregistered icon to.

state

State

The state object representing the block.