<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: (GARSession) was successful. More...
 
(void) - session:didFailToHostAnchor:
 A call to hostCloudAnchor:error: (GARSession) failed. More...
 
(void) - session:didResolveAnchor:
 A call to resolveCloudAnchorWithIdentifier:error: (GARSession) was successful. More...
 
(void) - session:didFailToResolveAnchor:
 A call to resolveCloudAnchorWithIdentifier:error: (GARSession) failed. More...
 

Method Detail

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

A call to hostCloudAnchor:error: (GARSession) was successful.

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

A call to hostCloudAnchor:error: (GARSession) 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: (GARSession), snapshotted at the failure of hosting.
- (void) session: (GARSession *)  session
didResolveAnchor: (GARAnchor *)  anchor 
optional

A call to resolveCloudAnchorWithIdentifier:error: (GARSession) was successful.

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

A call to resolveCloudAnchorWithIdentifier:error: (GARSession) 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: (GARSession), snapshotted at the failure of resolving.

Send feedback about...