use core::ptr::NonNull;
#[cfg(feature = "objc2")]
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-foundation")]
use objc2_foundation::*;
use crate::*;
extern "C" {
#[cfg(feature = "objc2-foundation")]
pub static ARErrorDomain: &'static NSString;
}
#[cfg(feature = "objc2")]
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct ARErrorCode(pub NSInteger);
#[cfg(feature = "objc2")]
impl ARErrorCode {
#[doc(alias = "ARErrorCodeUnsupportedConfiguration")]
pub const UnsupportedConfiguration: Self = Self(100);
#[doc(alias = "ARErrorCodeSensorUnavailable")]
pub const SensorUnavailable: Self = Self(101);
#[doc(alias = "ARErrorCodeSensorFailed")]
pub const SensorFailed: Self = Self(102);
#[doc(alias = "ARErrorCodeCameraUnauthorized")]
pub const CameraUnauthorized: Self = Self(103);
#[doc(alias = "ARErrorCodeMicrophoneUnauthorized")]
pub const MicrophoneUnauthorized: Self = Self(104);
#[doc(alias = "ARErrorCodeLocationUnauthorized")]
pub const LocationUnauthorized: Self = Self(105);
#[doc(alias = "ARErrorCodeHighResolutionFrameCaptureInProgress")]
pub const HighResolutionFrameCaptureInProgress: Self = Self(106);
#[doc(alias = "ARErrorCodeHighResolutionFrameCaptureFailed")]
pub const HighResolutionFrameCaptureFailed: Self = Self(107);
#[doc(alias = "ARErrorCodeWorldTrackingFailed")]
pub const WorldTrackingFailed: Self = Self(200);
#[doc(alias = "ARErrorCodeGeoTrackingNotAvailableAtLocation")]
pub const GeoTrackingNotAvailableAtLocation: Self = Self(201);
#[doc(alias = "ARErrorCodeGeoTrackingFailed")]
pub const GeoTrackingFailed: Self = Self(202);
#[doc(alias = "ARErrorCodeInvalidReferenceImage")]
pub const InvalidReferenceImage: Self = Self(300);
#[doc(alias = "ARErrorCodeInvalidReferenceObject")]
pub const InvalidReferenceObject: Self = Self(301);
#[doc(alias = "ARErrorCodeInvalidWorldMap")]
pub const InvalidWorldMap: Self = Self(302);
#[doc(alias = "ARErrorCodeInvalidConfiguration")]
pub const InvalidConfiguration: Self = Self(303);
#[doc(alias = "ARErrorCodeInvalidCollaborationData")]
pub const InvalidCollaborationData: Self = Self(304);
#[doc(alias = "ARErrorCodeInsufficientFeatures")]
pub const InsufficientFeatures: Self = Self(400);
#[doc(alias = "ARErrorCodeObjectMergeFailed")]
pub const ObjectMergeFailed: Self = Self(401);
#[doc(alias = "ARErrorCodeFileIOFailed")]
pub const FileIOFailed: Self = Self(500);
#[doc(alias = "ARErrorCodeRequestFailed")]
pub const RequestFailed: Self = Self(501);
}
#[cfg(feature = "objc2")]
unsafe impl Encode for ARErrorCode {
const ENCODING: Encoding = NSInteger::ENCODING;
}
#[cfg(feature = "objc2")]
unsafe impl RefEncode for ARErrorCode {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}