Package apple.arkit.protocol
Interface ARSessionDelegate
-
- All Superinterfaces:
ARSessionObserver
public interface ARSessionDelegate extends ARSessionObserver
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidsessionDidAddAnchors(ARSession session, NSArray<? extends ARAnchor> anchors)This is called when new anchors are added to the session.default voidsessionDidRemoveAnchors(ARSession session, NSArray<? extends ARAnchor> anchors)This is called when anchors are removed from the session.default voidsessionDidUpdateAnchors(ARSession session, NSArray<? extends ARAnchor> anchors)This is called when anchors are updated.default voidsessionDidUpdateFrame(ARSession session, ARFrame frame)This is called when a new frame has been updated.-
Methods inherited from interface apple.arkit.protocol.ARSessionObserver
sessionCameraDidChangeTrackingState, sessionDidChangeGeoTrackingStatus, sessionDidFailWithError, sessionDidOutputAudioSampleBuffer, sessionDidOutputCollaborationData, sessionInterruptionEnded, sessionShouldAttemptRelocalization, sessionWasInterrupted
-
-
-
-
Method Detail
-
sessionDidAddAnchors
default void sessionDidAddAnchors(ARSession session, NSArray<? extends ARAnchor> anchors)
This is called when new anchors are added to the session.- Parameters:
session- The session being run.anchors- An array of added anchors.
-
sessionDidRemoveAnchors
default void sessionDidRemoveAnchors(ARSession session, NSArray<? extends ARAnchor> anchors)
This is called when anchors are removed from the session.- Parameters:
session- The session being run.anchors- An array of removed anchors.
-
sessionDidUpdateAnchors
default void sessionDidUpdateAnchors(ARSession session, NSArray<? extends ARAnchor> anchors)
This is called when anchors are updated.- Parameters:
session- The session being run.anchors- An array of updated anchors.
-
-