Stay organized with collections
Save and categorize content based on your preferences.
blockly > IIcon > getType
IIcon.getType() method
Signature:
getType(): IconType<IIcon>;
Returns:
IconType<IIcon>
the IconType representing the type of the icon. This value should also be used to register the icon via Blockly.icons.registry.register
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003eThe \u003ccode\u003egetType()\u003c/code\u003e method returns the \u003ccode\u003eIconType\u003c/code\u003e of the icon.\u003c/p\u003e\n"],["\u003cp\u003eThe returned \u003ccode\u003eIconType\u003c/code\u003e is used for registering the icon with \u003ccode\u003eBlockly.icons.registry.register\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["[blockly](./blockly.md) \\\u003e [IIcon](./blockly.iicon_interface.md) \\\u003e [getType](./blockly.iicon_interface.gettype_1_methodsignature.md)\n\nIIcon.getType() method\n\n**Signature:** \n\n getType(): IconType\u003cIIcon\u003e;\n\n**Returns:**\n\n[IconType](./blockly.icons_namespace.icontype_class.md)\\\u003c[IIcon](./blockly.iicon_interface.md)\\\u003e\n\nthe IconType representing the type of the icon. This value should also be used to register the icon via `Blockly.icons.registry.register`."]]