GARCreateAnchorOnTerrainFuture
A handle to an async operation initiated by a call to createAnchorWithCoordinate:altitudeAboveTerrain:eastUpSouthQAnchor:completionHandler:error: (GARSession(Geospatial))
.
See the Terrain anchors developer guide for more information.
Summary
Inheritance
Inherits from:
GARFuture
Properties
|
resultAnchor
|
The result anchor of the async operation, or nil if the operation isn't completed successfully.
|
resultTerrainAnchorState
|
The result terrain anchor state of the async operation, or a default value if the operation isn't complete.
|
Properties
resultAnchor
The result anchor of the async operation, or nil if the operation isn't completed successfully.
This should only be used after checking that state
is GARFutureStateDone
.
resultTerrainAnchorState
The result terrain anchor state of the async operation, or a default value if the operation isn't complete.
This should only be used after checking that state
is GARFutureStateDone
.
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 2024-12-12 UTC.
[null,null,["Last updated 2024-12-12 UTC."],[[["`GARCreateAnchorOnTerrainFuture` handles the asynchronous operation of creating terrain anchors in Google's ARCore Geospatial API."],["It provides properties like `resultAnchor` and `resultTerrainAnchorState` to access the outcome of the anchor creation process."],["Developers should consult the Terrain anchors developer guide and the `GARSession` documentation for detailed usage instructions."],["Before accessing result properties, ensure the operation's state is `GARFutureStateDone` using the `state` property inherited from `GARFuture`."]]],["`GARCreateAnchorOnTerrainFuture` represents an asynchronous operation for creating terrain anchors. It provides two key properties: `resultAnchor`, which holds the resulting `GARAnchor` if the operation succeeds (otherwise nil), and `resultTerrainAnchorState`, detailing the operation's terrain anchor state. Both properties are only valid after confirming the operation's `state` is `GARFutureStateDone`. This future is created with a call to `createAnchorWithCoordinate`.\n"]]