docs.unity3d.com
    目次を表示する/隠す

    Class NSErrorExtensions

    Extensions to the NSError object.

    Inheritance
    Object
    NSErrorExtensions
    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 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.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)