Stay organized with collections
Save and categorize content based on your preferences.
GARHostCloudAnchorFuture
A handle to an async operation launched by a call to hostCloudAnchor:TTLDays:completionHandler:error: (GARSession(CloudAnchors))
.
See the Cloud Anchors developer guide for more information.
Summary
Inheritance
Inherits from:
GARFuture
Properties
|
resultCloudAnchorState
|
The result Cloud Anchor state of the async operation, or a default value if the operation isn't complete.
|
resultCloudIdentifier
|
NSString *
The result identifier of the async operation, or nil if the operation isn't completed successfully.
|
Properties
resultCloudAnchorState
The result Cloud 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
.
resultCloudIdentifier
The result identifier of the async operation, or nil if the operation isn't completed successfully.
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\u003eGARHostCloudAnchorFuture\u003c/code\u003e manages the asynchronous operation of hosting a Cloud Anchor, initiated by \u003ccode\u003ehostCloudAnchor:TTLDays:completionHandler:error:\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt provides properties like \u003ccode\u003eresultCloudAnchorState\u003c/code\u003e and \u003ccode\u003eresultCloudIdentifier\u003c/code\u003e to access the operation's outcome, but only after confirming completion using the \u003ccode\u003estate\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should refer to the Cloud Anchors developer guide for detailed information on utilizing Cloud Anchors in their AR applications.\u003c/p\u003e\n"]]],[],null,["# GARHostCloudAnchorFuture Class Reference\n\nGARHostCloudAnchorFuture\n========================\n\nA handle to an async operation launched by a call to [hostCloudAnchor:TTLDays:completionHandler:error: (GARSession(CloudAnchors))](/ar/reference/ios/category/GARSession(CloudAnchors)#hostcloudanchor:ttldays:completionhandler:error:).\n\nSee the [Cloud Anchors developer guide](https://developers.google.com/ar/develop/ios/cloud-anchors/developer-guide) for more information.\n\nSummary\n-------\n\n### Inheritance\n\nInherits from: [`GARFuture`](/ar/reference/ios/interface/GARFuture)\n\n| ### Properties ||\n|---------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [resultCloudAnchorState](#resultcloudanchorstate) | [GARCloudAnchorState](/ar/reference/ios/group/GARCloudAnchorState#garcloudanchorstate) The result Cloud Anchor state of the async operation, or a default value if the operation isn't complete. |\n| [resultCloudIdentifier](#resultcloudidentifier) | `NSString *` The result identifier of the async operation, or nil if the operation isn't completed successfully. |\n\nProperties\n----------\n\n### resultCloudAnchorState\n\n```transact-sql\n@property(nonatomic, readonly) /ar/reference/ios/group/GARCloudAnchorState#garcloudanchorstate /ar/reference/ios/interface/GARHostCloudAnchorFuture#resultcloudanchorstate;\n``` \nThe result Cloud 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). \n\n### resultCloudIdentifier\n\n```transact-sql\n@property(nonatomic, nullable, readonly) NSString */ar/reference/ios/interface/GARHostCloudAnchorFuture#resultcloudidentifier;\n``` \nThe result identifier 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)."]]