Class MapContext
Class MapContext
- java.lang.Object
-
- com.here.NativeBase
-
- com.here.sdk.mapview.MapContext
-
public final class MapContext extends NativeBase
MapContext is the rendering engine and the context in which virtual geographic maps get rendered.
It runs the render loop or offers the means for the user to run a custom one.
Data sources, assets and virtual maps can be attached to the context. A virtual map can only render data from sources attached to the same context.
The graphics backend to be used by the engine can be choosen by the user or a platform suitable one can be automatically selected internally. Only one graphics backend can be active and once selected it cannot be changed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMapContext.FreeResourceSeverityThe severity of a free resource request.static classMapContext.ResourceTypeTypes of system resources used byMapContextor any of the entities attached to it, likeHereMap.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfreeResource(MapContext.ResourceType type, MapContext.FreeResourceSeverity severity)Frees a system resource held by theMapContextand all entities attached to it, likeHereMap.
-
-
-
Method Detail
-
freeResource
public void freeResource(@NonNull MapContext.ResourceType type, @NonNull MapContext.FreeResourceSeverity severity)Frees a system resource held by the
MapContextand all entities attached to it, likeHereMap. This function is intended for use when a system resource availability becomes low. For example, some memory can be freed when the application transitions to the background state.- Parameters:
type-Type of resource to be freed.
severity-Severity of the request.
-
-