fromTemplate

Input Lynx template binary content and return the parsed TemplateBundle object.

Syntax

Android

public static TemplateBundle fromTemplate(byte[] template);

Parameters

  • template: Template binary content.

Return

  • The TemplateBundle object.
NOTE
  • When the input template is null, this method returns null directly.
  • When the input template is not a correct Lynx template data, an invalid TemplateBundle is returned.

iOS

- (instancetype _Nullable)initWithTemplate:(nonnull NSData *)tem;

Parameters

  • tem: Template binary content.

Return

  • The TemplateBundle object.
NOTE
  • When the input tem is not a correct Lynx template data, or is nil, an invalid TemplateBundle is returned

Harmony

public static async fromTemplate(template: ArrayBuffer): Promise<TemplateBundle>;

Parameters

  • template: Template binary content.

Return

  • TemplateBundle in promise.

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.