This site has been permanently archived. The content on this site was last updated in 2019.
ControllerManager.ApiStatus
Stay organized with collections
Save and categorize content based on your preferences.
Constants that represent the status of the controller API.
Constants
int |
ERROR_CLIENT_OBSOLETE |
The underlying VR service is too new, is incompatible with current client. |
int |
ERROR_MALFUNCTION |
The underlying VR service is malfunctioning. |
int |
ERROR_NOT_AUTHORIZED |
This app was not authorized to use the service (e.g., missing permissions, the app is
blacklisted by the underlying service, etc). |
int |
ERROR_SERVICE_OBSOLETE |
The underlying VR service is too old, needs upgrade. |
int |
ERROR_UNAVAILABLE |
The underlying VR service is not present. |
int |
ERROR_UNSUPPORTED |
API failed because this device does not support controllers (API is too low, or other
required feature not present). |
int |
OK |
API is happy and healthy. |
Public Methods
final
static
String
|
toString(int state)
Convert a connection state to String.
|
Inherited Methods
From class
java.lang.Object
boolean
|
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
Constants
public
static
final
int
ERROR_CLIENT_OBSOLETE
The underlying VR service is too new, is incompatible with current client.
Constant Value:
5
public
static
final
int
ERROR_MALFUNCTION
The underlying VR service is malfunctioning. Try again later.
Constant Value:
6
public
static
final
int
ERROR_NOT_AUTHORIZED
This app was not authorized to use the service (e.g., missing permissions, the app is
blacklisted by the underlying service, etc).
Constant Value:
2
public
static
final
int
ERROR_SERVICE_OBSOLETE
The underlying VR service is too old, needs upgrade.
Constant Value:
4
public
static
final
int
ERROR_UNAVAILABLE
The underlying VR service is not present.
Constant Value:
3
public
static
final
int
ERROR_UNSUPPORTED
API failed because this device does not support controllers (API is too low, or other
required feature not present).
Constant Value:
1
public
static
final
int
OK
API is happy and healthy. This doesn't mean the controller itself is connected, it just means
that the underlying service is working properly.
Constant Value:
0
Public Methods
public
static
final
String
toString
(int state)
Convert a connection state to String.
All rights reserved. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 UTC."],[[["\u003cp\u003e\u003ccode\u003eControllerManager.ApiStatus\u003c/code\u003e provides constants representing the status of the controller API, indicating whether it's operational or encountering issues.\u003c/p\u003e\n"],["\u003cp\u003eThese constants cover scenarios like service malfunctions, incompatibility, authorization problems, and device support limitations.\u003c/p\u003e\n"],["\u003cp\u003eEach constant has an associated integer value and a detailed description of the specific status it represents.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003etoString\u003c/code\u003e method is available to convert the integer representation of the API status into a human-readable string.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize these constants to understand and handle different states of the VR controller API, ensuring smooth integration and functionality.\u003c/p\u003e\n"]]],["The `ControllerManager.ApiStatus` class defines constants representing the status of the controller API. These constants include `OK` (API is healthy), and various error states: `ERROR_UNSUPPORTED` (device incompatible), `ERROR_NOT_AUTHORIZED` (app unauthorized), `ERROR_UNAVAILABLE` (service absent), `ERROR_SERVICE_OBSOLETE` (service outdated), `ERROR_CLIENT_OBSOLETE` (client outdated), and `ERROR_MALFUNCTION` (service malfunctioning). Additionally, a `toString` method is available to convert a status integer to a descriptive string.\n"],null,["public static class **ControllerManager.ApiStatus** \nConstants that represent the status of the controller API. \n\nConstants\n\n|-----|---------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------|\n| int | [ERROR_CLIENT_OBSOLETE](/vr/reference/android/com/google/vr/sdk/controller/ControllerManager.ApiStatus#ERROR_CLIENT_OBSOLETE) | The underlying VR service is too new, is incompatible with current client. |\n| int | [ERROR_MALFUNCTION](/vr/reference/android/com/google/vr/sdk/controller/ControllerManager.ApiStatus#ERROR_MALFUNCTION) | The underlying VR service is malfunctioning. |\n| int | [ERROR_NOT_AUTHORIZED](/vr/reference/android/com/google/vr/sdk/controller/ControllerManager.ApiStatus#ERROR_NOT_AUTHORIZED) | This app was not authorized to use the service (e.g., missing permissions, the app is blacklisted by the underlying service, etc). |\n| int | [ERROR_SERVICE_OBSOLETE](/vr/reference/android/com/google/vr/sdk/controller/ControllerManager.ApiStatus#ERROR_SERVICE_OBSOLETE) | The underlying VR service is too old, needs upgrade. |\n| int | [ERROR_UNAVAILABLE](/vr/reference/android/com/google/vr/sdk/controller/ControllerManager.ApiStatus#ERROR_UNAVAILABLE) | The underlying VR service is not present. |\n| int | [ERROR_UNSUPPORTED](/vr/reference/android/com/google/vr/sdk/controller/ControllerManager.ApiStatus#ERROR_UNSUPPORTED) | API failed because this device does not support controllers (API is too low, or other required feature not present). |\n| int | [OK](/vr/reference/android/com/google/vr/sdk/controller/ControllerManager.ApiStatus#OK) | API is happy and healthy. |\n\nPublic Methods\n\n|---------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| final static [String](https://developer.android.com/reference/java/lang/String) | [toString](/vr/reference/android/com/google/vr/sdk/controller/ControllerManager.ApiStatus#toString(int))(int state) Convert a connection state to String. |\n\nInherited Methods \nFrom class java.lang.Object \n\n|-----------------------------------------------------------------------------|---------------------------------------------------------------------------------|\n| boolean | equals([Object](https://developer.android.com/reference/java/lang/Object) arg0) |\n| final [Class](https://developer.android.com/reference/java/lang/Class)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](https://developer.android.com/reference/java/lang/String) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nConstants \n\npublic static final int\n**ERROR_CLIENT_OBSOLETE** \nThe underlying VR service is too new, is incompatible with current client. \nConstant Value: 5 \n\npublic static final int\n**ERROR_MALFUNCTION** \nThe underlying VR service is malfunctioning. Try again later. \nConstant Value: 6 \n\npublic static final int\n**ERROR_NOT_AUTHORIZED** \nThis app was not authorized to use the service (e.g., missing permissions, the app is\nblacklisted by the underlying service, etc). \nConstant Value: 2 \n\npublic static final int\n**ERROR_SERVICE_OBSOLETE** \nThe underlying VR service is too old, needs upgrade. \nConstant Value: 4 \n\npublic static final int\n**ERROR_UNAVAILABLE** \nThe underlying VR service is not present. \nConstant Value: 3 \n\npublic static final int\n**ERROR_UNSUPPORTED** \nAPI failed because this device does not support controllers (API is too low, or other\nrequired feature not present). \nConstant Value: 1 \n\npublic static final int\n**OK** \nAPI is happy and healthy. This doesn't mean the controller itself is connected, it just means\nthat the underlying service is working properly. \nConstant Value: 0\n\nPublic Methods \n\npublic static final [String](https://developer.android.com/reference/java/lang/String)\n**toString**\n(int state) \nConvert a connection state to String. \n\nParameters\n\n| state | |\n|-------|---|"]]