magic-script-components-react-native icon indicating copy to clipboard operation
magic-script-components-react-native copied to clipboard

Shared Resources

Open pleszkiewicz opened this issue 6 years ago • 0 comments

< Main issue

Description

Create an entity (e.g. Resources) which manages instances of resources (audio, video, model, image).

  • It should allow loading given resource only once (initial load via path).
  • It should allow accessing given resource by index.
  • The resource's index can be used as an entry point in all components that use resources (e.g. button, model, audio). Check Lumin documentation for more details.
  • It should allow resetting given resource.

Based on Lumin Resource class, the native interface may look like this:

class Resource {
   Int getResourceId()
   bool isResourceValid()
   ResourceType getResourceType()
   String getFileName()
   String getBasePath()
   LoadStatus getLoadStatus()
}

Completion status

  • [ ] Android
  • [ ] iOS

pleszkiewicz avatar Jan 13 '20 12:01 pleszkiewicz