docs.unity3d.com
    Show / Hide Table of Contents

    Class NSErrorExtensions

    Extensions to the NSError object.

    Inheritance
    Object
    NSErrorExtensions
    Namespace: UnityEngine.XR.ARKit
    Syntax
    public static class NSErrorExtensions

    Methods

    AsARKitErrorCode(NSError)

    Converts an NSError to an ARKitErrorCode by casting its code to an ARKitErrorCode.

    Declaration
    public static ARKitErrorCode AsARKitErrorCode(this NSError error)
    Parameters
    Type Name Description
    NSError error

    The NSError being extended.

    Returns
    Type Description
    ARKitErrorCode

    Returns the NSError as an ARKitErrorCode.

    Exceptions
    Type Condition
    InvalidCastException

    Thrown if error's ToErrorDomain() is not ARKit.

    See Also
    OnSessionDidFailWithError(ARKitSessionSubsystem, NSError)

    AsCoreLocationErrorCode(NSError)

    Converts an NSError to an CoreLocationErrorCode by casting its code to an CoreLocationErrorCode.

    Declaration
    public static CoreLocationErrorCode AsCoreLocationErrorCode(this NSError error)
    Parameters
    Type Name Description
    NSError error

    The NSError being extended.

    Returns
    Type Description
    CoreLocationErrorCode

    Returns the NSError as an CoreLocationErrorCode.

    Exceptions
    Type Condition
    InvalidCastException

    Thrown if error's ToErrorDomain() is not CoreLocation.

    Back to top
    Terms of use
    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