Stay organized with collections
Save and categorize content based on your preferences.
GARCreateAnchorOnRooftopFuture
A handle to an async operation initiated by a call to createAnchorWithCoordinate:altitudeAboveRooftop:eastUpSouthQAnchor:completionHandler:error: (GARSession(Geospatial))
.
See the Rooftop 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.
|
resultRooftopAnchorState
|
The result rooftop 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
.
resultRooftopAnchorState
The result rooftop 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 2025-07-14 UTC.
[null,null,["Last updated 2025-07-14 UTC."],[[["\u003cp\u003e\u003ccode\u003eGARCreateAnchorOnRooftopFuture\u003c/code\u003e handles the asynchronous operation of creating a rooftop anchor in Google's ARCore Geospatial API.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can find more detailed information in the Rooftop anchors developer guide.\u003c/p\u003e\n"],["\u003cp\u003eUpon completion, it provides access to the resulting anchor (\u003ccode\u003eresultAnchor\u003c/code\u003e) and its state (\u003ccode\u003eresultRooftopAnchorState\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThese result properties should only be accessed after verifying the operation's completion using the \u003ccode\u003estate\u003c/code\u003e property.\u003c/p\u003e\n"]]],[],null,["# GARCreateAnchorOnRooftopFuture Class Reference\n\nGARCreateAnchorOnRooftopFuture\n==============================\n\nA handle to an async operation initiated by a call to [createAnchorWithCoordinate:altitudeAboveRooftop:eastUpSouthQAnchor:completionHandler:error: (GARSession(Geospatial))](/ar/reference/ios/category/GARSession(Geospatial)#createanchorwithcoordinate:altitudeaboverooftop:eastupsouthqanchor:completionhandler:error:).\n\nSee the [Rooftop anchors developer guide](https://developers.google.com/ar/develop/ios/geospatial/anchors#rooftop-anchors) for more information.\n\nSummary\n-------\n\n### Inheritance\n\nInherits from: [`GARFuture`](/ar/reference/ios/interface/GARFuture)\n\n| ### Properties ||\n|-------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [resultAnchor](#resultanchor) | [GARAnchor](/ar/reference/ios/interface/GARAnchor#interface_g_a_r_anchor)` *` The result anchor of the async operation, or nil if the operation isn't completed successfully. |\n| [resultRooftopAnchorState](#resultrooftopanchorstate) | [GARRooftopAnchorState](/ar/reference/ios/group/GARRooftopAnchorState#garrooftopanchorstate) The result rooftop anchor state of the async operation, or a default value if the operation isn't complete. |\n\nProperties\n----------\n\n### resultAnchor\n\n```transact-sql\n@property(nonatomic, nullable, readonly) /ar/reference/ios/interface/GARAnchor#interface_g_a_r_anchor */ar/reference/ios/interface/GARCreateAnchorOnRooftopFuture#resultanchor;\n``` \nThe result anchor of the async operation, or nil if the operation isn't completed successfully.\n\nThis should only be used after checking that [state](/ar/reference/ios/interface/GARFuture#state) is [GARFutureStateDone](/ar/reference/ios/group/GARFutureState#garfuturestatedone). \n\n### resultRooftopAnchorState\n\n```transact-sql\n@property(nonatomic, readonly) /ar/reference/ios/group/GARRooftopAnchorState#garrooftopanchorstate /ar/reference/ios/interface/GARCreateAnchorOnRooftopFuture#resultrooftopanchorstate;\n``` \nThe result rooftop anchor state of the async operation, or a default value if the operation isn't complete.\n\nThis should only be used after checking that [state](/ar/reference/ios/interface/GARFuture#state) is [GARFutureStateDone](/ar/reference/ios/group/GARFutureState#garfuturestatedone)."]]