TemplateBundle is the output product of the PreDecode capability provided by the Lynx SDK. Client developers can parse the Lynx template product in advance to obtain the TemplateBundle object and consume the template product.
Input Lynx template binary content and return the parsed TemplateBundle object.
Params:
Note:
template is null, this method returns null directly;template is not a correct Lynx template data, an invalid TemplateBundle is returned;Read the content of the extraInfo field configured in the pageConfig of the front-end template. When the front-end does not configure extraInfo or is called on an empty TemplateBundle object, it returns null;
Determines whether the current TemplateBundle object is valid.
When TemplateBundle is an invalid object, use this method to obtain the exception information that occurred during template parsing;
Start a sub-thread task to generate the js code cache of the current template;
Params:
codeCacheSourceUrl: String: The url of the current template;useV8: boolean: Whether to generate V8 Code Cache, otherwise generate QuickJS Code Cache;Release the Native memory held by the current TemplateBundle object. After executing the release method, the TemplateBundle will become the inValid state;
Input Lynx template binary content and return the parsed LynxTemplateBundle object.
Params:
tem: NSData*: Template binary content;Note:
tem is not a correct Lynx template data, or is nil, an invalid TemplateBundle is returned;Use this method to obtain the exception information that occurs during template parsing; if nil is returned, it proves that the LynxTemplateBundle is normal;
Read the content of the extraInfo field configured in the pageConfig of the front-end template. When the front-end does not configure extraInfo or is called on an empty TemplateBundle object, it returns null;
LCD tables only load in the browser