GARAnchor

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.

Summary

Inheritance

Inherits from: NSObject, <NSCopying>

Properties

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

Properties

cloudIdentifier

@property(nonatomic, readonly, nullable) NSString *cloudIdentifier;

Cloud Anchor identifier, if applicable.

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

Provided by category GARAnchor(CloudAnchors).

cloudState

@property(nonatomic, readonly) GARCloudAnchorState cloudState;

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).

hasValidTransform

@property(nonatomic, readonly) BOOL hasValidTransform;

Whether or not this anchor has a valid transform.

Equivalent to self.trackingState == GARTrackingStateTracking.

identifier

@property(nonatomic, readonly) NSUUID *identifier;

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.

terrainState

@property(nonatomic, readonly) GARTerrainAnchorState terrainState;

The Terrain anchor state, if applicable.

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

Provided by category GARAnchor(Geospatial).

trackingState

@property(nonatomic, readonly) GARTrackingState trackingState;

The tracking state of the anchor.

transform

@property(nonatomic, readonly) matrix_float4x4 transform;

Transform of anchor relative to world origin.

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