SparseSpatialMapManager Class

This type is an EasyAR Sense API in C#: SparseSpatialMapManager . Some descriptions may not apply to Unity environment on this page.

This type is partially wrapped into Unity components: SparseSpatialMapWorkerFrameFilter . Members and instances of this type are not required to be used directly in most situations. Use this type by SparseSpatialMapWorkerFrameFilter.Manager instead of creating new instances when a few unwrapped API is desired for use.

Description

SparseSpatialMap manager class, for managing sharing.


Methods

isAvailable

C#

public static bool isAvailable()

Check whether SparseSpatialMapManager is is available. It returns true when the operating system is Windows, Mac, iOS or Android.

create

C#

public static SparseSpatialMapManager create()

Creates an instance.

host

C#

public virtual void host( SparseSpatialMap mapBuilder, string apiKey, string apiSecret, string sparseSpatialMapAppId, string name, Optional< Image > preview, Optional<int> timeoutMilliseconds, CallbackScheduler callbackScheduler, Action<bool, string, string> onCompleted)

Creates a map from SparseSpatialMap and upload it to EasyAR cloud servers. After completion, a serverMapId will be returned for loading map from EasyAR cloud servers.

load

C#

public virtual void load( SparseSpatialMap mapTracker, string serverMapId, string apiKey, string apiSecret, string sparseSpatialMapAppId, Optional<int> timeoutMilliseconds, CallbackScheduler callbackScheduler, Action<bool, string> onCompleted)

Loads a map from EasyAR cloud servers by serverMapId. To unload the map, call SparseSpatialMap.unloadMap with serverMapId.

clear

C#

public virtual void clear()

Clears allocated cache space.