Page Summary
-
UwbStatusCodes provides status codes for nearby UWB results.
-
Key status codes include success (STATUS_OK), general error (STATUS_ERROR), and specific errors like SERVICE_NOT_AVAILABLE, INVALID_API_CALL, NULL_RANGING_DEVICE, RANGING_ALREADY_STARTED, and UWB_SYSTEM_CALLBACK_FAILURE.
-
UwbStatusCodes inherits status codes from CommonStatusCodes, such as CANCELED, TIMEOUT, and INTERNAL_ERROR.
-
The class includes a method getStatusCodeString(int arg0) for retrieving the string representation of a status code.
Status codes for Nearby UWB results.
Constant Summary
| int | ARCORE_APK_TOO_OLD | The installed ARCore APK is too old for the ARCore SDK with which client was built. |
| int | ARCORE_CAMERA_NOT_AVAILABLE | ARCore failed to start because the camera is in use by another app or process. |
| int | ARCORE_DEVICE_NOT_COMPATIBLE | The device isn't compatible with ARCore. |
| int | ARCORE_MISSING_CAMERA_PERMISSION | Client doesn't have the Manifest.permission.CAMERA
permission needed for ARCore. |
| int | ARCORE_MISSING_GL_CONTEXT | ARCore failed to start because the necessary
EGLContext
isn't available. |
| int | ARCORE_NOT_INSTALLED | The ARCore APK isn't present. |
| int | ARCORE_SDK_TOO_OLD | The ARCore SDK that this app was built with is too old and is no longer supported by the installed ARCore APK. |
| int | INVALID_API_CALL | The call is not valid. |
| int | NULL_RANGING_DEVICE | The RangingDevice is null for controller or controlee. |
| int | PRECISION_FINDING_HARDWARE_AOA_PRECEDENCE | Precision finding didn't start because hardware AoA is enabled and supported. |
| int | PRECISION_FINDING_NOT_AVAILABLE | Precision finding is not available on this device. |
| int | RANGING_ALREADY_STARTED | Ranging has already started; this is a duplicate request. |
| int | SERVICE_NOT_AVAILABLE | The service is not available on this device. |
| int | STATUS_ERROR | The operation failed, without any more information. |
| int | STATUS_OK | The operation was successful. |
| int | UWB_SYSTEM_CALLBACK_FAILURE | Unusual failures happened in UWB system callback, such as stopping ranging or removing a known controlee failed. |
Inherited Constant Summary
Inherited Method Summary
Constants
public static final int ARCORE_APK_TOO_OLD
The installed ARCore APK is too old for the ARCore SDK with which client was built.
This can be prevented by the installation check described in the Session class-level
documentation.
Will only occur when precision finding with ARCore-based odometry is configured.
public static final int ARCORE_CAMERA_NOT_AVAILABLE
ARCore failed to start because the camera is in use by another app or process.
Will only occur when precision finding with ARCore-based odometry is configured.
When this status code is returned by
UwbClient.startRanging(RangingParameters, RangingSessionCallback), the
session will start anyway, falling back to raw data.
public static final int ARCORE_DEVICE_NOT_COMPATIBLE
The device isn't compatible with ARCore. If encountered after completing the installation check, this usually indicates that ARCore has been side-loaded onto an incompatible device.
Will only occur when precision finding with ARCore-based odometry is configured.
When this status code is returned by
UwbClient.startRanging(RangingParameters, RangingSessionCallback), the
session will start anyway, falling back to raw data.
public static final int ARCORE_MISSING_CAMERA_PERMISSION
Client doesn't have the Manifest.permission.CAMERA
permission needed for ARCore.
Will only occur when precision finding with ARCore-based odometry is configured.
public static final int ARCORE_MISSING_GL_CONTEXT
ARCore failed to start because the necessary EGLContext
isn't available.
Will only occur when precision finding with ARCore-based odometry is configured.
When this status code is returned by
UwbClient.startRanging(RangingParameters, RangingSessionCallback), the
session will start anyway, falling back to raw data.
public static final int ARCORE_NOT_INSTALLED
The ARCore APK isn't present. This can be prevented by the installation check
described in the Session class-level
documentation.
Will only occur when precision finding with ARCore-based odometry is configured.
public static final int ARCORE_SDK_TOO_OLD
The ARCore SDK that this app was built with is too old and is no longer supported by the installed ARCore APK.
Will only occur when precision finding with ARCore-based odometry is configured.
When this status code is returned by
UwbClient.startRanging(RangingParameters, RangingSessionCallback), the
session will start anyway, falling back to raw data.
public static final int INVALID_API_CALL
The call is not valid. For example, get Complex Channel for the controlee.
public static final int NULL_RANGING_DEVICE
The RangingDevice is null for controller or controlee.
public static final int PRECISION_FINDING_HARDWARE_AOA_PRECEDENCE
Precision finding didn't start because hardware AoA is enabled and supported.
Will only occur when precision finding is configured and AoA is enabled.
When this status code is returned by
UwbClient.startRanging(RangingParameters, RangingSessionCallback), the
session will start anyway, falling back to raw data with hardware AoA.
public static final int PRECISION_FINDING_NOT_AVAILABLE
Precision finding is not available on this device.
Will only occur when precision finding is configured.
When this status code is returned by
UwbClient.startRanging(RangingParameters, RangingSessionCallback), the
session will start anyway, falling back to raw data.
public static final int RANGING_ALREADY_STARTED
Ranging has already started; this is a duplicate request.
public static final int SERVICE_NOT_AVAILABLE
The service is not available on this device.
public static final int STATUS_ERROR
The operation failed, without any more information.
public static final int STATUS_OK
The operation was successful.
public static final int UWB_SYSTEM_CALLBACK_FAILURE
Unusual failures happened in UWB system callback, such as stopping ranging or removing a known controlee failed.