Thanks for tuning in to Google I/O. Check out the sessions.

GARFrame

ARCore frame class.

Summary

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.

Inheritance

Inherits from: NSObject

Properties

anchors
NSArray< GARAnchor * > *
All anchors in the GARSession at the timestamp of this frame, plus any anchors removed by the GARSession since the last frame was generated.
earth
Snapshot of the GAREarth state for this frame.
streetscapeGeometries
NSArray< GARStreetscapeGeometry * > *
List of snapshots of GARStreetscapeGeometry for this frame.
timestamp
NSTimeInterval
The frame timestamp.
updatedAnchors
NSArray< GARAnchor * > *
The subset of the anchors array consisting of those anchors that have changed since the last frame was generated.

Properties

anchors

@property(nonatomic, readonly) NSArray *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.

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

earth

@property(nonatomic, readonly, nullable) GAREarth *earth;

Snapshot of the GAREarth state for this frame.

This will be nil if GARSessionConfiguration.geospatialMode is disabled.

Provided by category GARFrame(Geospatial).

streetscapeGeometries

@property(nonatomic, readonly, nullable) NSArray *streetscapeGeometries;

List of snapshots of GARStreetscapeGeometry for this frame.

See the Streetscape Geometry Developer Guide for additional information.

This will be nil if GARSessionConfiguration.streetscapeGeometryMode is disabled.

Provided by category GARFrame(Geospatial).

timestamp

@property(nonatomic, readonly) NSTimeInterval timestamp;

The frame timestamp.

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

updatedAnchors

@property(nonatomic, readonly) NSArray *updatedAnchors;

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.