Interface ARSessionDelegate

    • Method Detail

      • sessionDidAddAnchors

        default void sessionDidAddAnchors​(@NotNull
                                          @NotNull ARSession session,
                                          @NotNull
                                          @NotNull 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​(@NotNull
                                             @NotNull ARSession session,
                                             @NotNull
                                             @NotNull 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​(@NotNull
                                             @NotNull ARSession session,
                                             @NotNull
                                             @NotNull NSArray<? extends ARAnchor> anchors)
        This is called when anchors are updated.
        Parameters:
        session - The session being run.
        anchors - An array of updated anchors.
      • sessionDidUpdateFrame

        default void sessionDidUpdateFrame​(@NotNull
                                           @NotNull ARSession session,
                                           @NotNull
                                           @NotNull ARFrame frame)
        This is called when a new frame has been updated.
        Parameters:
        session - The session being run.
        frame - The frame that has been updated.