Acknowledged

Feature request: dynamic resource loading

Loading application resources (strings, images, etc.) in Connect IQ is done using symbols. Symbols are a compile-time construct, so any resources I want to put in my application have to be hard-coded in my source files. I would like to be able to reference resources dynamically (e.g., allow loadResource() to take strings) so that I can reference image resources within strings, e.g. loading an image from Markdown source.

Parents
  • Hey Travis,

    It's exactly like this. I created a similar construct in my app to map strings to resource symbols in order to reference them in a templating language.

    e.g. Markdown: "[Image of a duck](duck.svg)"

    The feature request is to avoid all of this overhead and instead have a way to control what resources are present in my app without referencing them at compile time, and then to load them at runtime. That would simplify the development of content-based apps like mine tremendously.

Comment
  • Hey Travis,

    It's exactly like this. I created a similar construct in my app to map strings to resource symbols in order to reference them in a templating language.

    e.g. Markdown: "[Image of a duck](duck.svg)"

    The feature request is to avoid all of this overhead and instead have a way to control what resources are present in my app without referencing them at compile time, and then to load them at runtime. That would simplify the development of content-based apps like mine tremendously.

Children
No Data