Class ResourceManager
- java.lang.Object
-
- com.google.ar.sceneform.rendering.ResourceManager
-
public class ResourceManager extends java.lang.ObjectMinimal 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 voidaddResourceHolder(ResourceHolder resource)voiddestroyAllResources()Forcibly deletes all tracked referencesCleanupRegistry<DepthTexture>getDepthTextureCleanupRegistry()static ResourceManagergetInstance()longreclaimReleasedResources()
-
-
-
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()
-
-