GARAnchor Class

GARAnchor Class Reference

Overview

ARCore anchor class.

A GARAnchor is an immutable snapshot of an underlying anchor at a particular timestamp. All snapshots of the same underlying anchor will have the same identifier.

Inherits NSObject. Implements <NSCopying>.

Property Summary

matrix_float4x4 transform
 Transform of anchor relative to world origin. More...
 
NSUUID * identifier
 Unique Identifier for this anchor. More...
 
BOOL hasValidTransform
 Whether or not this anchor has a valid transform. More...
 
GARTrackingState trackingState
 The tracking state of the anchor. More...
 
NSString * cloudIdentifier
 Cloud anchor identifier, if applicable. More...
 
GARCloudAnchorState cloudState
 The cloud anchor state, if applicable. More...
 
GARTerrainAnchorState terrainState
 The Terrain anchor state, if applicable. More...
 

Property Detail

- (matrix_float4x4) transform
readnonatomicassign

Transform of anchor relative to world origin.

This should only be considered valid if the property hasValidTransform returns YES.

- (NSUUID*) identifier
readnonatomicassign

Unique Identifier for this anchor.

isEqual: will return YES for another GARAnchor with the same identifier, and the hash method is also computed from the identifier.

- (BOOL) hasValidTransform
readnonatomicassign

Whether or not this anchor has a valid transform.

Equivalent to self.trackingState == GARTrackingStateTracking.

- (GARTrackingState) trackingState
readnonatomicassign

The tracking state of the anchor.

- (NSString*) cloudIdentifier
readnonatomicassign

Cloud anchor identifier, if applicable.

This will be nil unless the cloud state of the anchor is GARCloudAnchorStateSuccess.

Provided by category GARAnchor(CloudAnchors).

- (GARCloudAnchorState) cloudState
readnonatomicassign

The cloud anchor state, if applicable.

Indicates the state of the hosting or resolving operation on this anchor, if any.

Provided by category GARAnchor(CloudAnchors).

- (GARTerrainAnchorState) terrainState
readnonatomicassign

The Terrain anchor state, if applicable.

Indicates the state of the resolving operation on this anchor, if any.

Provided by category GARAnchor(Geospatial).