<GARSessionDelegate> Protocol

<GARSessionDelegate> Protocol Reference

Overview

Delegate for receiving callbacks from a GARSession.

All methods are optional.

Inherits <NSObject>.

Instance Method Summary

(void) - session:didHostAnchor:
 A call to hostCloudAnchor:error: was successful. More...
 
(void) - session:didFailToHostAnchor:
 A call to hostCloudAnchor:error: failed. More...
 
(void) - session:didResolveAnchor:
 A call to resolveCloudAnchorWithIdentifier:error: was successful. More...
 
(void) - session:didFailToResolveAnchor:
 A call to resolveCloudAnchorWithIdentifier:error: failed. More...
 

Method Detail

- (void) session: (GARSession *)  session
didHostAnchor: (GARAnchor *)  anchor 
optional

A call to hostCloudAnchor:error: was successful.

Parameters
sessionThe GARSession in which the anchor was hosted.
anchorThe GARAnchor that was returned from hostCloudAnchor:error:, snapshotted at the completion of hosting.
- (void) session: (GARSession *)  session
didFailToHostAnchor: (GARAnchor *)  anchor 
optional

A call to hostCloudAnchor:error: failed.

Inspect the value of anchor.cloudState for details.

Parameters
sessionThe GARSession in which the anchor was hosted.
anchorThe GARAnchor that was returned from hostCloudAnchor:error:, snapshotted at the failure of hosting.
- (void) session: (GARSession *)  session
didResolveAnchor: (GARAnchor *)  anchor 
optional

A call to resolveCloudAnchorWithIdentifier:error: was successful.

Parameters
sessionThe GARSession in which the anchor was resolved.
anchorThe GARAnchor that was returned from resolveCloudAnchorWithIdentifier:error:, snapshotted at the completion of resolving.
- (void) session: (GARSession *)  session
didFailToResolveAnchor: (GARAnchor *)  anchor 
optional

A call to resolveCloudAnchorWithIdentifier:error: failed.

Inspect the value of anchor.cloudState for details.

Parameters
sessionThe GARSession in which the anchor was resolved.
anchorThe GARAnchor that was returned from resolveCloudAnchorWithIdentifier:error:, snapshotted at the failure of resolving.

Send feedback about...