Protocol ASACloudSpatialAnchorSessionDelegate

Declaration

@protocol ASACloudSpatialAnchorSessionDelegate;

Description

A set of methods that are called by ASACloudSpatialAnchorSession in response to important events.

Methods

tokenRequired

Occurs when the session requires an updated access token or authentication token.

-(void)tokenRequired:(ASACloudSpatialAnchorSession *)sender :(ASATokenRequiredEventArgs *)args {

Parameters

  • sender - The session that requires an updated access token or authentication token.
  • args - The event arguments that require an AccessToken property or an AuthenticationToken property to be set.

anchorLocated

Occurs when an anchor's location is determined.

-(void)anchorLocated:(ASACloudSpatialAnchorSession *)sender :(ASAAnchorLocatedEventArgs *)args {

Parameters

  • sender - The session that fires the event.
  • args - Information about the located anchor.

locateAnchorsCompleted

Occurs when all the results from a watcher that is locating anchors are processed.

-(void)locateAnchorsCompleted:(ASACloudSpatialAnchorSession *)sender :(ASALocateAnchorsCompletedEventArgs *)args {

Parameters

  • sender - The session that ran the locate operation.
  • args - The arguments describing the operation completion.

sessionUpdated

Occurs when all the session state is updated.

-(void)sessionUpdated:(ASACloudSpatialAnchorSession *)sender :(ASASessionUpdatedEventArgs *)args {

Parameters

  • sender - The session that has been updated.
  • args - Information about the current session status.

error

Occurs when the session is unable to continue processing.

-(void)error:(ASACloudSpatialAnchorSession *)sender :(ASASessionErrorEventArgs *)args {

Parameters

  • sender - The session that fired the event.
  • args - Information about the error.

onLogDebug

Occurs when a debug log message is generated.

-(void)onLogDebug:(ASACloudSpatialAnchorSession *)sender :(ASAOnLogDebugEventArgs *)args {

Parameters

  • sender - The session that fired the event.
  • args - Information about the log.

updatedSensorFingerprintRequired

Occurs when the session requests an updated sensor fingerprint from the application.

-(void)updatedSensorFingerprintRequired:(ASACloudSpatialAnchorSession *)sender :(ASASensorFingerprintEventArgs *)args {

Parameters

  • sender - The session that is requesting optional sensor data for improving recall accuracy over time.
  • args - The event arguments that allow sensor properties to be set.