GARFramePair
Container class for an ARFrame
and its corresponding GARFrame
.
These two frames will always have the same timestamp. A GARFrame
does not hold references to ARFrame
s - ARFrame
s must be released as quickly as possible to free up resources, or ARKit may be starved. The SDK only holds a reference to the most recent frame pair.
Summary
Inheritance
Inherits from:
NSObject
Properties
|
arFrame
|
ARFrame *
The ARKit frame object.
|
garFrame
|
The ARCore frame object.
|
Properties
arFrame
@property(nonatomic, readonly) ARFrame *arFrame;
Public methods
initWithARFrame:GARFrame:
- (instancetype _Nullable)initWithARFrame:
(ARFrame *) arFrame
Instantiate a GARFramePair
with the given frames.
Details |
Parameters |
arFrame
|
The ARKit frame object.
|
garFrame
|
The ARCore frame object.
|
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-28 UTC.
[null,null,["Last updated 2025-02-28 UTC."],[[["`GARFramePair` is a container for corresponding `ARFrame` and `GARFrame` objects, ensuring synchronized timestamps."],["`ARFrame`s should be released swiftly to avoid resource constraints within ARKit."],["The SDK retains only the latest `GARFramePair`, optimizing memory usage."],["`GARFramePair` offers straightforward access to both `ARFrame` and `GARFrame` via its properties."],["Developers can create `GARFramePair` instances by using the designated initializer with `ARFrame` and `GARFrame` as inputs."]]],[]]