Class ResourceManager
- java.lang.Object
-
- com.google.ar.sceneform.rendering.ResourceManager
-
public class ResourceManager extends java.lang.Object
Minimal resource manager. Maintains mappings from ids to created resources and a task executor dedicated to loading resources asynchronously.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addResourceHolder(ResourceHolder resource)
void
destroyAllResources()
Forcibly deletes all tracked referencesCleanupRegistry<DepthTexture>
getDepthTextureCleanupRegistry()
static ResourceManager
getInstance()
long
reclaimReleasedResources()
-
-
-
Method Detail
-
getDepthTextureCleanupRegistry
public CleanupRegistry<DepthTexture> getDepthTextureCleanupRegistry()
-
reclaimReleasedResources
public long reclaimReleasedResources()
-
destroyAllResources
public void destroyAllResources()
Forcibly deletes all tracked references
-
addResourceHolder
public void addResourceHolder(ResourceHolder resource)
-
getInstance
public static ResourceManager getInstance()
-
-