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-view/update-meta-data.md.
Lynx
  • English
  • updateMetaData

    Using LynxUpdateMeta to update LynxView, it is the main entrance for the client to update template data.

    Syntax

    Android

    public void updateMetaData(LynxUpdateMeta meta);

    Parameters

    • meta: Lynx template update metadata, developers use this data structure to specify the optional data content of the update template.

    iOS

    - (void)updateMetaData:(nonnull LynxUpdateMeta *)meta;

    Parameters

    • meta: Lynx template update metadata, developers use this data structure to specify the optional data content of the update template.

    Web

    Info

    The signature below applies to @lynx-js/web-core 0.18.0 and later. In earlier versions, the second parameter of updateData is required and declared as updateDataType: UpdateDataType; since 0.18.0, it is the optional processorName?: string. See the 0.18.0 changelog.

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

    Parameters

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

    Desktop (C++)

    void UpdateData(std::shared_ptr<lynx::pub::LynxUpdateMeta> update_meta);

    Parameters

    • update_meta: The update metadata used to provide template data and global props.

    Compatibility

    LCD tables only load in the browser

    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.