docs.unity3d.com
    Show / Hide Table of Contents

    Class ARKitSessionDelegate

    A set of callbacks related to the ARKit session. Implement this class to provide custom handling of certain session events.

    Inheritance
    Object
    ARKitSessionDelegate
    DefaultARKitSessionDelegate
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.XR.ARKit
    Syntax
    public abstract class ARKitSessionDelegate

    Methods

    OnCoachingOverlayViewDidDeactivate(ARKitSessionSubsystem)

    Invoked when the coaching experience is completely deactivated. This base class implementation does nothing.

    Declaration
    protected virtual void OnCoachingOverlayViewDidDeactivate(ARKitSessionSubsystem sessionSubsystem)
    Parameters
    Type Name Description
    ARKitSessionSubsystem sessionSubsystem

    The ARKitSessionSubsystem which provides an interface to the ARKit session.

    Remarks

    See coachingOverlayViewDidDeactivate: for more information.

    See Also
    requestedCoachingGoal
    currentCoachingGoal
    SetCoachingActive(Boolean, ARCoachingOverlayTransition)
    OnCoachingOverlayViewWillActivate(ARKitSessionSubsystem)

    OnCoachingOverlayViewWillActivate(ARKitSessionSubsystem)

    Invoked when the coaching overlay view activates. This base class implementation does nothing.

    Declaration
    protected virtual void OnCoachingOverlayViewWillActivate(ARKitSessionSubsystem sessionSubsystem)
    Parameters
    Type Name Description
    ARKitSessionSubsystem sessionSubsystem

    The ARKitSessionSubsystem which provides an interface to the ARKit session.

    Remarks

    See coachingOverlayViewWillActivate: for more information.

    See Also
    requestedCoachingGoal
    currentCoachingGoal
    SetCoachingActive(Boolean, ARCoachingOverlayTransition)
    OnCoachingOverlayViewDidDeactivate(ARKitSessionSubsystem)

    OnConfigurationChanged(ARKitSessionSubsystem)

    Invoked when a change to the ARConfiguration is requested.

    Declaration
    protected virtual void OnConfigurationChanged(ARKitSessionSubsystem sessionSubsystem)
    Parameters
    Type Name Description
    ARKitSessionSubsystem sessionSubsystem

    The ARKitSessionSubsystem which provides an interface to the ARKit session.

    OnSessionDidFailWithError(ARKitSessionSubsystem, NSError)

    Invoked when the session fails. This base class implementation does nothing.

    Declaration
    protected virtual void OnSessionDidFailWithError(ARKitSessionSubsystem sessionSubsystem, NSError error)
    Parameters
    Type Name Description
    ARKitSessionSubsystem sessionSubsystem

    The ARKitSessionSubsystem which provides an interface to the ARKit session.

    NSError error

    The NSError object describing the failure. This object is only valid during this callback. See also ARKitErrorCode.

    Remarks

    Use this to respond to session failures. For example, the DefaultARKitSessionDelegate implementation tries to restart the session by calling Reset.

    See session:didFailWithError: for more information.

    See Also

    DefaultARKitSessionDelegate
    sessionDelegate
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023