docs.unity3d.com
    Show / Hide Table of Contents

    Class DefaultARKitSessionDelegate

    A default implementation of ARKitSessionDelegate.

    Inheritance
    Object
    ARKitSessionDelegate
    DefaultARKitSessionDelegate
    Inherited Members
    ARKitSessionDelegate.OnCoachingOverlayViewWillActivate(ARKitSessionSubsystem)
    ARKitSessionDelegate.OnCoachingOverlayViewDidDeactivate(ARKitSessionSubsystem)
    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 class DefaultARKitSessionDelegate : ARKitSessionDelegate

    Properties

    maxRetryCount

    (Read Only) The maximum number of attempts to reset the session if the session fails.

    Declaration
    public virtual int maxRetryCount { get; set; }
    Property Value
    Type Description
    Int32
    See Also
    OnSessionDidFailWithError(ARKitSessionSubsystem, NSError)

    retriesRemaining

    The number of session reset attempts remaining.

    Declaration
    public int retriesRemaining { get; protected set; }
    Property Value
    Type Description
    Int32
    See Also
    maxRetryCount

    Methods

    OnConfigurationChanged(ARKitSessionSubsystem)

    Resets the retriesRemaining to maxRetryCount.

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

    The ARKitSessionSubsystem which provides an interface to the ARKit session.

    Overrides
    ARKitSessionDelegate.OnConfigurationChanged(ARKitSessionSubsystem)

    OnSessionDidFailWithError(ARKitSessionSubsystem, NSError)

    Default handling for session failures. This implementation logs an error and attempts to reset the session up to maxRetryCount times.

    Declaration
    protected override 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.

    Overrides
    ARKitSessionDelegate.OnSessionDidFailWithError(ARKitSessionSubsystem, NSError)
    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