@lynx-js/lynxtron / LynxTemplateBundle
LynxTemplateBundle
Constructors
new LynxTemplateBundle()
A pre-decoded Lynx template bundle.
This class corresponds to Lynx SDK's LynxTemplateBundle (TemplateBundle),
which is the output of Lynx's pre-decode capability. You can parse a Lynx
App Bundle ahead of time to obtain a TemplateBundle and then load it via
LynxWindow.loadBundle(templateBundle) for faster startup.
Notes:
- A LynxTemplateBundle instance can be non-null but still invalid. Use
isValid()to check andgetErrorMessage()to inspect the parsing error. - The constructor accepts either a Node.js
Bufferor anyArrayBufferViewcontaining the bundle bytes.
Parameters
Returns
Defined in
apis/api/lynx-template-bundle.d.ts:20
Methods
getErrorMessage()
Returns an error message when the TemplateBundle is invalid, otherwise an empty string.
Returns
string
Defined in
apis/api/lynx-template-bundle.d.ts:29
isValid()
Returns whether this TemplateBundle is valid.
Returns
boolean
Defined in