For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/lynx-native-api/lynx-update-meta.md.
Lynx
  • English
  • LynxUpdateMeta

    LynxUpdateMeta is the metadata structure used by LynxView to update template data. It will serve as the input parameter for UpdateData. Users can specify various parameters required for the update through LynxUpdateMeta, such as template data and globalProps, among others.

    Android:

    Field

    LynxUpdateMeta has the following members:

    • updateData: TemplateData: The content of the data to update the template;
    • globalProps: TemplateData: The globalProps content for updating the template;

    Construction

    On the Android platform, you need to use LynxUpdateMeta.Builder to construct a LynxUpdateMeta object:

    LynxUpdateMeta.Builder builder = new LynxUpdateMeta.Builder();
    builder.setUpdatedData(data);
    builder.setUpdatedGlobalProps(globalProps);
    LynxUpdateMeta meta = builder.build();

    iOS

    Field

    LynxUpdateMeta has the following members:

    • updateData: TemplateData: The content of the data to update the template;
    • globalProps: TemplateData: The globalProps content for updating the template;

    Construction

    On the iOS platform, construct the LynxLoadMeta object as follows:

    LynxUpdateMeta* meta = [LynxUpdateMeta init];
    meta.data = nil;
    meta.globalProps = nil;

    Harmony

    Field

    MetaData has the following members:

    • templateData: TemplateData: The content of the data to update the template;
    • globalProps: TemplateData: The globalProps content for updating the template;

    Construction

    On the HarmonyOS platform, construct the MetaData object as follows:

    metaData = new MetaData(
      new TemplateData('{"text":"TD"}'),
      new TemplateData({ "theme": "Light" }));

    Web

    export type Cloneable<T = string | number | null | boolean | undefined> =
      | T
      | Record<string, T>
      | T[];
    
    updateData(
      data: Cloneable,
      updateDataType: UpdateDataType,
      callback?: () => void,
    ): void;
    updateGlobalProps(data: Cloneable): void;

    Parameters

    • data: Data to be updated, should be structuredClone compatible.

    Desktop (C++)

    Construct LynxUpdateMeta with the default constructor and configure it through setters:

    auto meta = std::make_shared<lynx::pub::LynxUpdateMeta>();
    meta->SetUpdateData(data);
    meta->SetGlobalProps(global_props);
    Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.