Device State
Last updated
Last updated
To get the currently active device, use the below function.
This returns an int which tells the device you are currently running on. It is mapped in an enum as follows.
DeviceType | Value | Device Name |
---|---|---|
Method | Description |
---|---|
Method | Description |
---|---|
Controller & Gamepad Method | Description |
---|---|
Controller Method | Description |
---|---|
Editor
0
Unity Editor
JioHoloboard
1
JioPrism
JioGlass
2
JioGlass
JioCardboard
3
JioDive
Checks if device is being used
Called when device proximity value changes
Called when device is connected
Called when device is disconnected
Called when battery percentage updated
Returns battery percentage of controller