GARFrame Class

GARFrame Class Reference

Overview

ARCore Cloud Anchors frame class.

Each GARFrame corresponds to an ARFrame that was passed into a GARSession with a call to update:error: (GARSession). GARFrames are immutable, since new ARFrames can be generated by ARKit at any time. For Augmented Faces, see GARAugmentedFaceFrame.

Inherits NSObject.

Property Summary

NSArray< GARAnchor * > * anchors
 All anchors in the GARSession at the timestamp of this frame, plus any anchors removed by the GARSession since the last frame was generated. More...
 
NSArray< GARAnchor * > * updatedAnchors
 The subset of the anchors array consisting of those anchors that have changed since the last frame was generated. More...
 
NSTimeInterval timestamp
 The frame timestamp. More...
 

Property Detail

- (NSArray<GARAnchor *>*) anchors
readnonatomicassign

All anchors in the GARSession at the timestamp of this frame, plus any anchors removed by the GARSession since the last frame was generated.

Each anchor in this array is an immutable snapshot of an underlying anchor, which can be uniquely identified by the anchor's identifier property.

- (NSArray<GARAnchor *>*) updatedAnchors
readnonatomicassign

The subset of the anchors array consisting of those anchors that have changed since the last frame was generated.

This should only be used if the immediately previous frame was processed.

- (NSTimeInterval) timestamp
readnonatomicassign

The frame timestamp.

This is equal to the timestamp on the corresponding ARFrame, and represents time since boot in seconds.

Send feedback about...