helpers/src/main/java/com/google/ar/core/codelab/cloudanchor/helpers/CloudAnchorManager.java
/** Should be called after a {@link Session#update()} call. */
Should be called after a  Session#update() call.
Should be called after a Session#update () call .
public synchronized void onUpdate() {
    Iterator<Map.Entry<Anchor, CloudAnchorListener>> iter = pendingAnchors.entrySet().iterator();
    while (iter.hasNext()) {
      Map.Entry<Anchor, CloudAnchorListener> entry = iter.next();
      Anchor anchor = entry.getKey();
      if (isReturnableState(anchor.getCloudAnchorState())) {
        CloudAnchorListener listener = entry.getValue();
        listener.onCloudTaskComplete(anchor);
        iter.remove();
      }
    }
  }
public synchronized void onUpdate ( ) { Iterator < Map . Entry < Anchor , CloudAnchorListener > > iter = pendingAnchors . entrySet ( ) . iterator ( ) ; while ( iter . hasNext ( ) ) { Map . Entry < Anchor , CloudAnchorListener > entry = iter . next ( ) ; Anchor anchor = entry . getKey ( ) ; if ( isReturnableState ( anchor . getCloudAnchorState ( ) ) ) { CloudAnchorListener listener = entry . getValue ( ) ; listener . onCloudTaskComplete ( anchor ) ; iter . remove ( ) ; } } }
Should be called after a {@link Session#update()} call.
Should be called after a { @link Session#update () } call .