Flutter Engine
The Flutter Engine
|
Functions | |
AR_DEFINE_ENUM (ArStatus) | |
AR_DEFINE_ENUM (ArTrackingState) | |
Shared types and constants
AR_DEFINE_ENUM | ( | ArStatus | ) |
Return code indicating success or failure of a method.
The operation was successful.
One of the arguments was invalid, either null or not appropriate for the operation requested.
An internal error occurred that the application should not attempt to recover from.
An operation was attempted that requires the session be running, but the session was paused.
An operation was attempted that requires the session be paused, but the session was running.
An operation was attempted that the session be in the TRACKING state, but the session was not.
A texture name was not set by calling ArSession_setCameraTextureName() before the first call to ArSession_update()
An operation required GL context but one was not available.
The configuration supplied to ArSession_configure() was unsupported. To avoid this error, ensure that Session_checkSupported() returns true.
The android camera permission has not been granted prior to calling ArSession_resume()
Acquire failed because the object being acquired is already released. For example, this happens if the application holds an ArFrame beyond the next call to ArSession_update(), and then tries to acquire its point cloud.
There are no available resources to complete the operation. In cases of acquire
methods returning this error, This can be avoided by releasing previously acquired objects before acquiring new ones.
Acquire failed because the data isn't available yet for the current frame. For example, acquire the image metadata may fail with this error because the camera hasn't fully started.
The android camera has been reallocated to a higher priority app or is otherwise unavailable.
The host/resolve function call failed because the Session is not configured for cloud anchors.
ArSession_configure() failed because the specified configuration required the Android INTERNET permission, which the application did not have.
HostCloudAnchor() failed because the anchor is not a type of anchor that is currently supported for hosting.
An image with insufficient quality (e.g. too few features) was attempted to be added to the image database.
The data passed in for this operation was not in a valid format.
The data passed in for this operation is not supported by this version of the SDK.
The ARCore APK is not installed on this device.
The device is not currently compatible with ARCore.
The ARCore APK currently installed on device is too old and needs to be updated.
The ARCore APK currently installed no longer supports the ARCore SDK that the application was built with.
The user declined installation of the ARCore APK during this run of the application and the current request was not marked as user-initiated.
Definition at line 470 of file arcore_c_api.h.
AR_DEFINE_ENUM | ( | ArTrackingState | ) |
Describes the tracking state of a Trackable
, an ArAnchor or the ArCamera.
The object is currently tracked and its pose is current.
ARCore has paused tracking this object, but may resume tracking it in the future. This can happen if device tracking is lost, if the user enters a new space, or if the Session is currently paused. When in this state, the positional properties of the object may be wildly inaccurate and should not be used.
ARCore has stopped tracking this Trackable and will never resume tracking it.
Definition at line 574 of file arcore_c_api.h.