LynxLoadMeta
is the metadata structure used by LynxView
to load templates. It will be used as the input parameter of loadTemplate. Users can use LynxLoadMeta
to specify many parameters of loading templates, such as specifying template content, template initial data, and other additional configuration information;
url: String
: Template file path;binaryData: byte[]
: The binary file data of the template;bundle: TemplateBundle
: TemplateBundle object parsed in advance by the template's binary file data;initialData: TemplateData
: Initial data specified by the client during the first screen loading process;globalProps: TemplateData
: Global properties, which will be synchronized to the template after the template is loaded.loadMode: LynxLoadMode
: Loading mode, the default value is LynxLoadMode.NORMAL
.loadOptions: EnumSet<LynxLoadOption>
: Additional configuration information when loading templates;lynxViewConfig: Map<String, String>
: Page Config information passed in when loading the template.url, binaryData, bundle are the required parameters for template loading. You can pass only one or all of them. The priority relationship is as follows: bundle > binaryData > url
loadOptions is additional configuration information when loading a template. Currently the following configuration items are supported:
loadMode is the loading mode of the template. Currently, the following configuration items are supported:
To construct a LynxLoadMeta
object on the Android
platform, you need to use LynxLoadMeta.Builder
:
url: NSString*
: Template file path;binaryData: NSData*
: The binary file data of the template;templateBundle: LynxTemplateBundle*
: TemplateBundle object parsed in advance by the template's binary file data;initialData: LynxTemplateData*
: Initial data specified by the client during the first screen loading process;globalProps: LynxTemplateData*
: Global properties, which will be synchronized to the template after the template is loaded.loadMode: LynxLoadMode
: Loading mode, the default value is LynxLoadModeNormal
.loadOption: LynxLoadOption
: Additional configuration information when loading templates;lynxViewConfig: NSMutableDictionary<NSString*, id>*
: Page Config information passed in when loading the template.url, binaryData, templateBundle are the required parameters for template loading. You can pass only one or all of them. The priority relationship is as follows: templateBundle > binaryData > url
loadOption is additional configuration information when loading a template. Currently the following configuration items are supported:
loadMode is the loading mode of the template. Currently, the following configuration items are supported:
On the iOS platform, you can construct a LynxLoadMeta object as follows:
LCD tables only load in the browser