Sdílet prostřednictvím


CloudSpatialAnchor Class

  • java.lang.Object
    • com.microsoft.azure.spatialanchors.CloudSpatialAnchor

public class CloudSpatialAnchor

Use this class to represent an anchor in space that can be persisted in a CloudSpatialAnchorSession.

Constructor Summary

Constructor Description
CloudSpatialAnchor()

Method Summary

Modifier and Type Method and Description
void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

Map<String, String> getAppProperties()

A dictionary of application-defined properties that is stored with the anchor.

Date getExpiration()

Gets the time the anchor will expire.

String getIdentifier()

Gets the persistent identifier of this spatial anchor in the cloud service.

Anchor getLocalAnchor()

Gets the anchor in the local mixed reality system.

String getVersionTag()

An opaque version tag that can be used for concurrency control.

void setExpiration(Date value)

Sets the time the anchor will expire.

void setLocalAnchor(Anchor value)

Sets the anchor in the local mixed reality system.

Constructor Details

CloudSpatialAnchor

public CloudSpatialAnchor()

Method Details

finalize

protected void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

getAppProperties

public Map getAppProperties()

A dictionary of application-defined properties that is stored with the anchor.

getExpiration

public Date getExpiration()

Gets the time the anchor will expire.

getIdentifier

public String getIdentifier()

Gets the persistent identifier of this spatial anchor in the cloud service.

getLocalAnchor

public Anchor getLocalAnchor()

Gets the anchor in the local mixed reality system.

getVersionTag

public String getVersionTag()

An opaque version tag that can be used for concurrency control.

setExpiration

public void setExpiration(Date value)

Sets the time the anchor will expire.

Parameters:

value - The new value.

setLocalAnchor

public void setLocalAnchor(Anchor value)

Sets the anchor in the local mixed reality system.

Parameters:

value - The new value.

Applies to