namespace UnityEngine.XR.ARCore
{
///
/// Return code indicating success or failure of a method in the ARCore SDK.
///
public enum ArStatus
{
///
/// The operation was successful.
///
Success = 0,
///
/// One of the arguments was invalid; either `null` or not appropriate for
/// the operation requested.
///
ErrorInvalidArgument = -1,
///
/// An internal error occurred that the application should not attempt to
/// recover from.
///
ErrorFatal = -2,
///
/// An operation was attempted that requires the session be running, but the
/// session was paused.
///
ErrorSessionPaused = -3,
///
/// An operation was attempted that requires the session be paused, but the
/// session was running.
///
ErrorSessionNotPaused = -4,
///
/// An operation was attempted that requires the session be in the
/// [TrackingState.Tracking](xref:UnityEngine.XR.ARSubsystems.TrackingState.Tracking) state,
/// but the session was not.
///
ErrorNotTracking = -5,
///
/// No textures are available to the ARCore session.
///
ErrorTextureNotSet = -6,
///
/// An operation requires a GL context but one was not available.
///
ErrorMissingGLContext = -7,
///
/// The ARCore session configuration is unsupported.
///
ErrorUnsupportedConfiguration = -8,
///
/// The application does not have Android camera permission.
///
ErrorCameraPermissionNotGranted = -9,
///
/// Acquire failed because the object being acquired was already released.
///
ErrorDeadlineExceeded = -10,
///
/// There are no available resources to complete the operation. In cases of
/// @c acquire functions returning this error, this can be avoided by
/// releasing previously acquired objects before acquiring new ones.
///
ErrorResourceExhausted = -11,
///
/// Acquire failed because the data isn't available yet for the current
/// frame. For example, acquiring image metadata may fail with this error
/// because the camera hasn't fully started.
///
ErrorNotYetAvailable = -12,
///
/// The Android camera has been reallocated to a higher priority application
/// or is otherwise unavailable.
///
ErrorCameraNotAvailable = -13,
///
/// The host/resolve function call failed because the Session is not
/// configured for Cloud Anchors.
///
ErrorCloudAnchorsNotConfigured = -14,
///
/// Failed to configure the ARCore session because the specified configuration
/// required the Android INTERNET permission, which the application did not
/// have.
///
ErrorInternetPermissionNotGranted = -15,
///
/// Could not create a new cloud anchor because the anchor is
/// not a type of anchor that is currently supported for hosting.
///
ErrorAnchorNotSupportedForHosting = -16,
///
/// Attempted to add an image with insufficient quality (e.g., too few
/// features) to the image database.
///
ErrorImageInsufficientQuality = -17,
///
/// The data passed in for this operation was not in a valid format.
///
ErrorDataInvalidFormat = -18,
///
/// The data passed in for this operation is not supported by this version
/// of the SDK.
///
ErrorDataUnsupportedVersion = -19,
///
/// A function has been invoked at an illegal or inappropriate time. A
/// message will be printed to logcat with additional details for the
/// developer.
///
ErrorIllegalState = -20,
///
/// Recording failed.
///
ErrorRecordingFailed = -23,
///
/// Playback failed.
///
ErrorPlaybackFailed = -24,
///
/// Operation is unsupported with the current session.
///
ErrorSessionUnsupported = -25,
///
/// The requested metadata tag cannot be found in input metadata.
///
ErrorMetadataNotFound = -26,
///
/// The ARCore APK is not installed on this device.
///
UnavailableARCoreNotInstalled = -100,
///
/// The device is not currently compatible with ARCore.
///
UnavailableDeviceNotCompatible = -101,
///
/// The ARCore APK currently installed on device is too old and needs to be
/// updated.
///
UnavailableApkTooOld = -103,
///
/// The ARCore APK currently installed no longer supports the ARCore SDK
/// that the application was built with.
///
UnavailableSdkTooOld = -104,
///
/// The user declined installation of the ARCore APK during this run of the
/// application and the current request was not marked as user-initiated.
///
UnavailableUserDeclinedInstallation = -105
}
}