Stay organized with collections
Save and categorize content based on your preferences.
blockly > serialization > ISerializer > priority
serialization.ISerializer.priority property
A priority value used to determine the order of deserializing state. More positive priorities are deserialized before less positive priorities. Eg if you have priorities (0, -10, 10, 100) the order of deserialiation will be (100, 10, 0, -10). If two serializers have the same priority, they are deserialized in an arbitrary order relative to each other.
Signature:
priority: number;
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."],[[["`priority` is a number value that dictates the order in which serialized data is loaded back into Blockly."],["Higher `priority` values are deserialized before lower ones, ensuring specific data is loaded in the intended sequence."],["Serializers with the same `priority` are deserialized in no particular order relative to each other."]]],[]]