### Get Device Info Example Source: https://business.picoxr.com/us/doc/EnterpriseAPI-Intro Retrieve specific device information, such as the PUI version, by calling pbsStateGetDeviceInfo. Ensure TobService is bound before calling this API. ```Java String puiVersion = ToBServiceHelper.getInstance().getServiceBinder(). pbsStateGetDeviceInfo(PBS_SystemInfoEnum.PUI_VERSION, 0); ``` -------------------------------- ### Maven Repository Configuration Source: https://business.picoxr.com/us/doc/EnterpriseAPI-Intro Configure the Maven repository address to include the necessary PICO libraries. ```Java maven { url 'https://maven.byted.org/repository/android_public' } ``` -------------------------------- ### Power Management and Room Calibration Source: https://business.picoxr.com/us/doc/EnterpriseAPI-Intro Manages power settings and initiates room calibration processes. ```APIDOC ## setPowerManageMode ### Description Sets the power management mode for the device. ### Method POST ### Endpoint /setPowerManageMode ### Parameters #### Request Body - **mode** (string) - Required - The power management mode to set. ## startRoomMark ### Description Launches the room calibration application. ### Method POST ### Endpoint /startRoomMark ## clearRoomMark ### Description Clears the data associated with room calibration. ### Method POST ### Endpoint /clearRoomMark ``` -------------------------------- ### Large Space Bounds and Quick Mode Source: https://business.picoxr.com/us/doc/EnterpriseAPI-Intro Manages the play boundary information and enables/disables a quick mode for large spaces. ```APIDOC ## getLargeSpaceBoundsInfo ### Description Retrieves information about the play boundary in a large space. ### Method GET ### Endpoint /getLargeSpaceBoundsInfo ## openLargeSpaceQuickMode ### Description Enables the quick mode for large space play boundaries. ### Method POST ### Endpoint /openLargeSpaceQuickMode ## closeLargeSpaceQukcMode ### Description Disables the quick mode for large space play boundaries. ### Method POST ### Endpoint /closeLargeSpaceQukcMode ## setOriginOfLargeSpaceQuickMode ### Description Sets the origin and forward direction for the large space quick mode. ### Method POST ### Endpoint /setOriginOfLargeSpaceQuickMode ### Parameters #### Request Body - **origin** (object) - Required - The origin coordinates. - **forward_direction** (object) - Required - The forward direction vector. ## setBoundaryOfLargeSpaceQuickMode ### Description Sets the play boundary size for the large space quick mode. ### Method POST ### Endpoint /setBoundaryOfLargeSpaceQuickMode ### Parameters #### Request Body - **boundary_size** (object) - Required - The dimensions of the play boundary. ## getLargeSpaceQuickModeInfo ### Description Retrieves information about the current state of the large space quick mode. ### Method GET ### Endpoint /getLargeSpaceQuickModeInfo ``` -------------------------------- ### Controller Pairing and Settings Source: https://business.picoxr.com/us/doc/EnterpriseAPI-Intro Handles pairing and unpairing of controllers, as well as setting preferred hand and vibration intensity. ```APIDOC ## startLeftControllerPair ### Description Initiates the pairing process for the left controller. ### Method POST ### Endpoint /startLeftControllerPair ## makeLeftControllerUnPair ### Description Unpairs the left controller. ### Method POST ### Endpoint /makeLeftControllerUnPair ## startRightControllerPair ### Description Initiates the pairing process for the right controller. ### Method POST ### Endpoint /startRightControllerPair ## makeRightControllerUnPair ### Description Unpairs the right controller. ### Method POST ### Endpoint /makeRightControllerUnPair ## stopControllerPair ### Description Stops any ongoing controller pairing process. ### Method POST ### Endpoint /stopControllerPair ## setControllerPreferHand ### Description Sets the preferred hand for controller input. ### Method POST ### Endpoint /setControllerPreferHand ### Parameters #### Request Body - **hand** (string) - Required - The preferred hand ('left' or 'right'). ## setControllerVibrateAmplitude ### Description Sets the vibration intensity for the controllers. ### Method POST ### Endpoint /setControllerVibrateAmplitude ### Parameters #### Request Body - **amplitude** (float) - Required - The vibration intensity level (0.0 to 1.0). ``` -------------------------------- ### Bind TobService with Callback Source: https://business.picoxr.com/us/doc/EnterpriseAPI-Intro Bind to the TobService and simultaneously set a callback to be notified of the binding status. This combines initialization and status monitoring. ```Java ToBServiceHelper.getInstance().bindTobService(getApplicationContext(), new ToBServiceHelper.BindCallBack() { @Override public void bindCallBack(Boolean status) { Log.i(TAG,"bindCallBack : " + status); }}); ``` -------------------------------- ### Bind TobService Source: https://business.picoxr.com/us/doc/EnterpriseAPI-Intro Initialize the TobService by binding it to the application context. This is the first step to accessing TobService functionalities. ```Java ToBServiceHelper.getInstance().bindTobService(Context context); ``` -------------------------------- ### Screen Recording and Capture Settings Source: https://business.picoxr.com/us/doc/EnterpriseAPI-Intro Configures settings for screen recording and capturing, including aspect ratio, resolution, and frame rate. ```APIDOC ## setScreenRecordShotRatio ### Description Sets the aspect ratio for screen recording and capturing. ### Method POST ### Endpoint /setScreenRecordShotRatio ### Parameters #### Request Body - **ratio** (string) - Required - The aspect ratio (e.g., "16:9"). ## setScreenResolution ### Description Sets the resolution for screen recording and capturing. ### Method POST ### Endpoint /setScreenResolution ### Parameters #### Request Body - **width** (integer) - Required - The desired width. - **height** (integer) - Required - The desired height. ## setScreenRecordFrameRate ### Description Sets the frame rate for screen recording. ### Method POST ### Endpoint /setScreenRecordFrameRate ### Parameters #### Request Body - **fps** (integer) - Required - The desired frames per second. ``` -------------------------------- ### System Update Methods Source: https://business.picoxr.com/us/doc/EnterpriseAPI-Intro Provides functionalities for updating the system, both online via OTA and offline. ```APIDOC ## onlineSystemUpdate ### Description Initiates an online system update using Over-The-Air (OTA) technology. ### Method POST ### Endpoint /onlineSystemUpdate ## offlineSystemUpdate ### Description Initiates an offline system update, likely from a local source. ### Method POST ### Endpoint /offlineSystemUpdate ``` -------------------------------- ### Visual and Screen Casting Settings Source: https://business.picoxr.com/us/doc/EnterpriseAPI-Intro Configures visual settings like single-eye source and field of view, and manages screen casting options. ```APIDOC ## setSingleEyeSource ### Description Sets the source for single-eye display. ### Method POST ### Endpoint /setSingleEyeSource ### Parameters #### Request Body - **source** (string) - Required - The source for the single eye display. ## setViewVisual ### Description Sets the field of view for visual rendering. ### Method POST ### Endpoint /setViewVisual ### Parameters #### Request Body - **fov** (float) - Required - The field of view value. ## setAcceptCastMode ### Description Determines whether to accept external screen casting requests. ### Method POST ### Endpoint /setAcceptCastMode ### Parameters #### Request Body - **accept** (boolean) - Required - True to accept casting, false otherwise. ## setScreenCastMode ### Description Enables or configures screen casting to external devices. ### Method POST ### Endpoint /setScreenCastMode ### Parameters #### Request Body - **mode** (string) - Required - The screen casting mode. - **device_id** (string) - Optional - The ID of the target device. ``` -------------------------------- ### Add Dependency Library Source: https://business.picoxr.com/us/doc/EnterpriseAPI-Intro Add the TobService library dependency to your project. ```Java implementation 'com.pvr.tobservice:tobservicelib:0.0.1-alpha.7' ``` -------------------------------- ### Global Dialog Management Source: https://business.picoxr.com/us/doc/EnterpriseAPI-Intro Provides methods to display and hide various types of global dialogs, including messages, tips, and status prompts. ```APIDOC ## showGlobalMessageDialog ### Description Displays a message-type global dialog. ### Method POST ### Endpoint /showGlobalMessageDialog ### Parameters #### Request Body - **message** (string) - Required - The message content. - **title** (string) - Optional - The dialog title. ## hideGlobalMessageDialog ### Description Hides the currently displayed message-type global dialog. ### Method POST ### Endpoint /hideGlobalMessageDialog ## showGlobalTipsDialog ### Description Displays a status display-type global dialog. ### Method POST ### Endpoint /showGlobalTipsDialog ### Parameters #### Request Body - **tip_message** (string) - Required - The tip message content. ## hideGlobalTipsDialog ### Description Hides the currently displayed status display-type global dialog. ### Method POST ### Endpoint /hideGlobalTipsDialog ## showGlobalBigStatusDialog ### Description Displays a large status prompt-type global dialog. ### Method POST ### Endpoint /showGlobalBigStatusDialog ### Parameters #### Request Body - **status_message** (string) - Required - The status message content. ## hideGlobalBigStatusDialog ### Description Hides the currently displayed large status prompt-type global dialog. ### Method POST ### Endpoint /hideGlobalBigStatusDialog ## showGlobalSmallStatusDialog ### Description Displays a small status prompt-type global dialog. ### Method POST ### Endpoint /showGlobalSmallStatusDialog ### Parameters #### Request Body - **status_message** (string) - Required - The status message content. ## hideGlobalSmallStatusDialog ### Description Hides the currently displayed small status prompt-type global dialog. ### Method POST ### Endpoint /hideGlobalSmallStatusDialog ## showGlobalDialogByType ### Description Displays a global popup dialog based on its type. ### Method POST ### Endpoint /showGlobalDialogByType ### Parameters #### Request Body - **dialog_type** (string) - Required - The type of dialog to display. - **dialog_data** (object) - Optional - Data specific to the dialog type. ## hideGlobalDialogByType ### Description Hides a global popup dialog based on its type. ### Method POST ### Endpoint /hideGlobalDialogByType ### Parameters #### Request Body - **dialog_type** (string) - Required - The type of dialog to hide. ``` -------------------------------- ### System Function Toggles and Status Source: https://business.picoxr.com/us/doc/EnterpriseAPI-Intro Provides methods to control and retrieve the status of various system functions, including auto-update, USB tethering, and real-time headset back key response. ```APIDOC ## pbsSwitchSystemFunction ### Description Enables or disables specific system functions based on provided enumerations. ### Method POST ### Endpoint /pbsSwitchSystemFunction ### Parameters #### Request Body - **function_id** (integer) - Required - The ID of the system function to toggle. - **enable** (boolean) - Required - True to enable, false to disable. ### Request Example { "function_id": 88, "enable": true } ## pbsGetSwitchSystemFunctionStatus ### Description Retrieves the current status (enabled or disabled) of a specific system function. ### Method GET ### Endpoint /pbsGetSwitchSystemFunctionStatus ### Parameters #### Query Parameters - **function_id** (integer) - Required - The ID of the system function to query. ### Response #### Success Response (200) - **status** (boolean) - The current status of the system function. ``` -------------------------------- ### High Risk API Permission Tag Source: https://business.picoxr.com/us/doc/EnterpriseAPI-Intro Add this meta-data tag to your application manifest to enable high-risk APIs. Note that apps using these APIs may not be uploadable to the PICO Developer Platform. ```XML ``` -------------------------------- ### Eye Tracking and Motion Tracking Source: https://business.picoxr.com/us/doc/EnterpriseAPI-Intro Provides methods for managing eye tracking data, refresh rates, and motion tracking prediction coefficients. ```APIDOC ## clearEyeTrackData ### Description Clears the collected eye tracking data. ### Method POST ### Endpoint /clearEyeTrackData ## setEyeTrackRate ### Description Sets the refresh rate for eye tracking. ### Method POST ### Endpoint /setEyeTrackRate ### Parameters #### Request Body - **rate** (integer) - Required - The desired eye tracking refresh rate. ## setTrackFrequency ### Description Sets the tracking frequency for motion or other tracking systems. ### Method POST ### Endpoint /setTrackFrequency ### Parameters #### Request Body - **frequency** (integer) - Required - The desired tracking frequency. ## setMotionTrackerPredictionCoefficient ### Description Sets the prediction coefficient for the motion tracker. ### Method POST ### Endpoint /setMotionTrackerPredictionCoefficient ### Parameters #### Request Body - **coefficient** (float) - Required - The prediction coefficient value. ## getMotionTrackerPredictionCoefficient ### Description Retrieves the current prediction coefficient for the motion tracker. ### Method GET ### Endpoint /getMotionTrackerPredictionCoefficient ## startMotionTrackerApp ### Description Launches the motion tracker application. ### Method POST ### Endpoint /startMotionTrackerApp ``` -------------------------------- ### Headset Recenter and QR Code Scanning Source: https://business.picoxr.com/us/doc/EnterpriseAPI-Intro Allows users to recalibrate the headset's origin and forward direction, and to scan QR codes for information retrieval. ```APIDOC ## recenter ### Description Calibrates the headset origin and forward direction. This function is equivalent to long-pressing the home button. ### Method POST ### Endpoint /recenter ## scanQRCode ### Description Scans a QR code and returns its associated information. ### Method POST ### Endpoint /scanQRCode ### Parameters #### Request Body - **qr_code_data** (string) - Required - The data captured from the QR code. ### Response #### Success Response (200) - **qr_info** (string) - The information extracted from the QR code. ``` -------------------------------- ### Set Binding Status Callback Source: https://business.picoxr.com/us/doc/EnterpriseAPI-Intro Register a callback to receive notifications about the TobService binding status. This is useful for handling connection changes asynchronously. ```Java ToBServiceHelper.getInstance().setBindCallBack(new ToBServiceHelper.BindCallBack() { @Override public void bindCallBack(Boolean status) { Log.i(TAG,"bindCallBack : " + status); }}); ``` -------------------------------- ### Unbind TobService Source: https://business.picoxr.com/us/doc/EnterpriseAPI-Intro Release the TobService connection when it is no longer needed to free up resources. This should be called when the application is closing or the service is not in use. ```Java ToBServiceHelper.getInstance().unBindTobService(getApplicationContext()); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.