|
PICO Unity XR SDK
|
Static Public Member Functions | |
| static void | InitSystemService (string objectName) |
| Initializes the system service for a specified game object. Must be called before calling other system related functions. More... | |
| static void | BindSystemService () |
| Binds the system service. Must be called before calling other system related functions. | |
| static void | UnBindSystemService () |
| Unbinds the system service. | |
| static bool | StartBatteryReceiver (string objName) |
| Turns on the battery service. More... | |
| static bool | StopBatteryReceiver () |
| Turns off the battery service. More... | |
| static bool | SetCommonBrightness (int brightness) |
| Sets the brightness for the current HMD. More... | |
| static int | GetCommonBrightness () |
| Gets the brightness of the current HMD. More... | |
| static int[] | GetScreenBrightnessLevel () |
| Gets the brightness level of the current screen. More... | |
| static void | SetScreenBrightnessLevel (int brightness, int level) |
| Sets a brightness level for the current screen. More... | |
| static bool | InitAudioDevice () |
| Initializes the audio device. More... | |
| static bool | StartAudioReceiver (string objName) |
| Turns on the volume service for a specified game object. More... | |
| static bool | StopAudioReceiver () |
| Turns off the volume service. More... | |
| static int | GetMaxVolumeNumber () |
| Gets the maximum volume. Call InitAudioDevice to initialize the audio device before calling this function. More... | |
| static int | GetCurrentVolumeNumber () |
| Gets the current volume. Call InitAudioDevice to initialize the audio device before calling this function. More... | |
| static bool | VolumeUp () |
| Increases the volume. Call InitAudioDevice to initialize the audio device before calling this function. More... | |
| static bool | VolumeDown () |
| Decreases the volume. Call InitAudioDevice to initialize the audio device before calling this function. More... | |
| static bool | SetVolumeNum (int volume) |
| Sets the volume. Call InitAudioDevice to initialize the audio device before calling this function. More... | |
| static PXR_PlatformSetting.simulationType | IsCurrentDeviceValid () |
| Checks whether the current device has valid permission for the game. More... | |
| static bool | AppEntitlementCheck (string appid) |
| Uses the appID to get whether the entitlement required by an app is present. More... | |
| static bool | KeyEntitlementCheck (string publicKey) |
| Uses the publicKey to get the entitlement check result. More... | |
| static int | AppEntitlementCheckExtra (string appId) |
| Use the appID to get the error code of the entitlement check result. More... | |
| static int | KeyEntitlementCheckExtra (string publicKey) |
| Use the publicKey to get the error code of the entitlement check result. More... | |
| static string | GetSDKVersion () |
| Gets the SDK version. More... | |
| static double | GetPredictedDisplayTime () |
| Gets the predicted time a frame will be displayed after being rendered. More... | |
| static bool | SetExtraLatencyMode (int mode) |
| Sets the extra latency mode. Note: Call this function once only. More... | |
| static string | StateGetDeviceInfo (SystemInfoEnum type) |
| Gets the specified type of device information. More... | |
| static void | ControlSetDeviceAction (DeviceControlEnum deviceControl, Action< int > callback) |
| Controls the device to shut down or reboot. More... | |
| static void | ControlAPPManager (PackageControlEnum packageControl, string path, Action< int > callback) |
| Installs or uninstalls app silently. More... | |
| static void | ControlSetAutoConnectWIFI (string ssid, string pwd, Action< bool > callback) |
| Sets a Wi-Fi that the device is automatically connected to. More... | |
| static void | ControlClearAutoConnectWIFI (Action< bool > callback) |
| Removes the Wi-Fi that the device is automatically connected to. More... | |
| static void | PropertySetHomeKey (HomeEventEnum eventEnum, HomeFunctionEnum function, Action< bool > callback) |
| Sets the Home key event. More... | |
| static void | PropertySetHomeKeyAll (HomeEventEnum eventEnum, HomeFunctionEnum function, int timesetup, string pkg, string className, Action< bool > callback) |
| Sets extended settings for the Home key. More... | |
| static void | PropertyDisablePowerKey (bool isSingleTap, bool enable, Action< int > callback) |
| Sets the Power key event. More... | |
| static void | PropertySetScreenOffDelay (ScreenOffDelayTimeEnum timeEnum, Action< int > callback) |
| Sets the time the screen turns off when the device is not in use. More... | |
| static void | PropertySetSleepDelay (SleepDelayTimeEnum timeEnum) |
| Sets the time the system sleeps when the device is not in use. More... | |
| static void | SwitchSystemFunction (SystemFunctionSwitchEnum systemFunction, SwitchEnum switchEnum) |
| Switches specified system function on/off. More... | |
| static void | SwitchSetUsbConfigurationOption (USBConfigModeEnum uSBConfigModeEnum) |
| Sets the USB mode. More... | |
| static void | ScreenOn () |
| Turns the screen on. More... | |
| static void | ScreenOff () |
| Turns the screen off. More... | |
| static void | AcquireWakeLock () |
| Acquires the wake lock. | |
| static void | ReleaseWakeLock () |
| Releases the wake lock. | |
| static void | EnableEnterKey () |
| Enables the Confirm key. | |
| static void | DisableEnterKey () |
| Disables the Confirm key. | |
| static void | EnableVolumeKey () |
| Enables the Volume Key. | |
| static void | DisableVolumeKey () |
| Disables the Volume Key. | |
| static void | EnableBackKey () |
| Enables the Back Key. | |
| static void | DisableBackKey () |
| Disables the Back Key. | |
| static void | WriteConfigFileToDataLocal (string path, string content, Action< bool > callback) |
| Writes the configuration file to the /data/local/tmp/ path. More... | |
| static void | ResetAllKeyToDefault (Action< bool > callback) |
| Resets all keys to default configuration. More... | |
| static void | SetAPPAsHome (SwitchEnum switchEnum, string packageName) |
| Sets an app as the launcher app. More... | |
| static void | KillAppsByPidOrPackageName (int[] pids, string[] packageNames) |
| Force quits app(s) by passing app PID or package name. More... | |
| static void | KillBackgroundAppsWithWhiteList (string[] packageNames) |
| Force quits background app(s) expect those in the allowlist. More... | |
| static void | FreezeScreen (bool freeze) |
| Freezes the screen to the front. The screen will turn around with the HMD. Note: This function only supports G2 4K series. More... | |
| static void | OpenMiracast () |
| Turns on the screencast function. | |
| static bool | IsMiracastOn () |
| Gets the status of the screencast function. More... | |
| static void | CloseMiracast () |
| Turns off the screencast function. | |
| static void | StartScan () |
| Starts scanning for devices that can be used for screen casting. | |
| static void | StopScan () |
| Stops scanning for devices that can be used for screen casting. | |
| static void | ConnectWifiDisplay (string modelJson) |
| Casts the screen to the specified device. More... | |
| static void | DisConnectWifiDisplay () |
| Stops casting the screen to the current device. | |
| static void | ForgetWifiDisplay (string address) |
| Forgets the device that have been connected for screencast. More... | |
| static void | RenameWifiDisplay (string address, string newName) |
| Renames the device connected for screencast (only the name for local storage). More... | |
| static void | SetWDModelsCallback () |
| Returns a wdmodel list of the device(s) for screencast. | |
| static void | SetWDJsonCallback () |
| Returns a JSON array of the device(s) for screencast. | |
| static void | UpdateWifiDisplays (Action< string > callback) |
| Manually updates the device list for screencast. More... | |
| static string | GetConnectedWD () |
| Gets the information of the current connected device. More... | |
| static void | SwitchLargeSpaceScene (bool open, Action< bool > callback) |
| Switches the large space scene on. More... | |
| static void | GetSwitchLargeSpaceStatus (Action< string > callback) |
| Gets the status of the large space scene. More... | |
| static bool | SaveLargeSpaceMaps () |
| Saves the large space map. More... | |
| static void | ExportMaps (Action< bool > callback) |
| Exports map(s). More... | |
| static void | ImportMaps (Action< bool > callback) |
| Imports map(s). More... | |
| static int | GetSensorStatus () |
| Gets the sensor's status. More... | |
| static void | SetSystemDisplayFrequency (float rate) |
| Sets the system display frequency rate. More... | |
| static float | GetSystemDisplayFrequency () |
| Gets the system display frequency rate. More... | |
| static int | GetPredictedMainSensorStateNew (ref PxrSensorState2 sensorState, ref int sensorFrameIndex) |
| Gets the predicted status of the sensor. More... | |
| static int | ContentProtect (int data) |
| static float[] | GetCpuUsages () |
| Gets the CPU utilization of the current device. More... | |
| static float[] | GetDeviceTemperatures (int type, int source) |
| Gets device temperature in Celsius. More... | |
| static void | Capture () |
| Captures the current screen. | |
| static void | Record () |
| Records the screen. Call this function again to stop recording. | |
| static void | ControlSetAutoConnectWIFIWithErrorCodeCallback (String ssid, String pwd, int ext, Action< int > callback) |
| Connects the device to a specified Wi-Fi. More... | |
| static void | AppKeepAlive (String appPackageName, bool keepAlive, int ext) |
| Keeps an app active. In other words, improves the priority of an app, thereby making the system not to force quit the app. More... | |
| static void | EnableFaceTracking (bool enable) |
| Enables/disables face tracking. More... | |
| static void | EnableLipSync (bool enable) |
| Enables/disables lipsync. More... | |
| static void | GetFaceTrackingData (Int64 ts, GetDataType flags, ref PxrFaceTrackingInfo faceTrackingInfo) |
| Gets face tracking data. More... | |
| static void | TimingStartup (int year, int month, int day, int hour, int minute, bool open) |
| Schedules auto startup for the device. Note: Supported by PICO Neo3 series. More... | |
| static void | TimingShutdown (int year, int month, int day, int hour, int minute, bool open) |
| Schedules auto shutdown for the device. Note: Supported by PICO Neo3 series. More... | |
| static void | StartVrSettingsItem (StartVRSettingsEnum settingsEnum, bool hideOtherItem, int ext) |
| Displays a specified settings screen. Note: Supported by PICO Neo3 and PICO 4 series. More... | |
| static void | SwitchVolumeToHomeAndEnter (SwitchEnum switchEnum, int ext) |
| Changes the Volume key's function to that of the Home and Enter key's, or restores the volume adjustment function to the Volume key. More... | |
| static SwitchEnum | IsVolumeChangeToHomeAndEnter () |
| Gets whether the Volume key's function has been changed to that of the Home and Enter key's. More... | |
| static int | InstallOTAPackage (String otaPackagePath) |
| Upgrades the OTA. More... | |
| static string | GetAutoConnectWiFiConfig () |
| Gets the configuration of the Wi-Fi nerwork that the device automatically connnects to. More... | |
| static string | GetTimingStartupStatus () |
| Gets the scheduled auto startup settings for the device. More... | |
| static string | GetTimingShutdownStatus () |
| Gets the scheduled auto shutdown settings for the device. More... | |
| static int | GetControllerKeyState (ControllerKeyEnum pxrControllerKey) |
| Gets the status of a specified controller key. More... | |
| static SwitchEnum | GetPowerOffWithUSBCable () |
| Gets the status of the switch for setting whether to power off the USB cable when the device is shut down. More... | |
| static ScreenOffDelayTimeEnum | GetScreenOffDelay () |
| Gets the screen timeout setting for the device. More... | |
| static SleepDelayTimeEnum | GetSleepDelay () |
| Gets the sleep timeout settings for the device. More... | |
| static string | GetPowerKeyStatus () |
| Gets the Power key's settings. More... | |
| static int | GetEnterKeyStatus () |
| Get the Enter key's status. More... | |
| static int | GetVolumeKeyStatus () |
| Get the Volume key's status. More... | |
| static int | GetBackKeyStatus () |
| Get the Back key's status. More... | |
| static string | GetHomKeyStatus (HomeEventEnum homeEvent) |
| Gets the event setting for the Home key. More... | |
| static void | GetSwitchSystemFunctionStatus (SystemFunctionSwitchEnum systemFunction, Action< int > callback) |
| Gets the status of a specified system function switch. More... | |
| static string | GetUsbConfigurationOption () |
| Gets the configured USB mode. More... | |
| static string | GetCurrentLauncher () |
| Gets the current launcher. More... | |
| static int | PICOCastInit (Action< int > callback) |
| Initializes the screencast service. More... | |
| static int | PICOCastSetShowAuthorization (int authZ) |
| Sets whether to show the screencast authorization window. More... | |
| static int | PICOCastGetShowAuthorization () |
| Gets the setting of whether to show the screencast authorization window. More... | |
| static string | PICOCastGetUrl (PICOCastUrlTypeEnum urlType) |
| Gets the URL for screencast. More... | |
| static int | PICOCastStopCast () |
| Stops screencast. More... | |
| static int | PICOCastSetOption (PICOCastOptionOrStatusEnum castOptionOrStatus, PICOCastOptionValueEnum castOptionValue) |
| sets screencast-related properties. More... | |
| static PICOCastOptionValueEnum | PICOCastGetOptionOrStatus (PICOCastOptionOrStatusEnum castOptionOrStatus) |
| Gets the screencast-related property setting for the current device. More... | |
| static void | SetControllerPairTime (ControllerPairTimeEnum timeEnum, Action< int > callback) |
| Sets the duration after which the controllers enter the pairing mode. More... | |
| static void | GetControllerPairTime (Action< int > callback) |
| Gets the duration after which the controllers enter the pairing mode. More... | |
| static int | SetSystemLanguage (String language) |
Sets the system language for the device. For a language that is spoken in different countries/regions, the system language is then co-set by the language code and the device's country/region code. For example, if the lanaguage code is set to en and the device's country/region code is US, the system language will be set to English (United States). More... | |
| static String | GetSystemLanguage () |
| Gets the device's system language. More... | |
| static int | ConfigWifi (String ssid, String pwd) |
| Sets a default Wi-Fi network for the device. Once set, the device will automatically connect to the Wi-Fi network if accessible. More... | |
| static String[] | GetConfiguredWifi () |
| Gets the device's default Wi-Fi network. More... | |
| static int | SetSystemCountryCode (String countryCode, Action< int > callback) |
| Sets a country/region for the device. More... | |
| static string | GetSystemCountryCode () |
| Gets the device's country/region code. More... | |
| static int | SetSkipInitSettingPage (int flag) |
| Sets the page to skip in initialization settings. More... | |
| static int | GetSkipInitSettingPage () |
| Gets the page to skip in initialization settings. More... | |
| static int | IsInitSettingComplete () |
| Gets whether the initialization settings have been complete. More... | |
| static int | StartActivity (String packageName, String className, String action, String extra, String[] categories, int[] flags) |
| Starts an activity in another app. More... | |
| static int | SetPerformanceLevels (PxrPerfSettings which, PxrSettingsLevel level) |
| Sets a GPU or CPU level for the device. More... | |
| static PxrSettingsLevel | GetPerformanceLevels (PxrPerfSettings which) |
| Gets the device's GPU or CPU level. More... | |
| static int | SetEyeFOV (EyeType eye, float fovLeft, float fovRight, float fovUp, float fovDown) |
| Sets FOV in four directions (left, right, up, and down) for specified eye(s). More... | |
| static int | CustomizeAppLibrary (String[] packageNames, SwitchEnum switchEnum) |
| Shows/hides specified app(s) in the library. More... | |
| static int | GetControllerConnectState () |
| Gets the controller connectivity status. More... | |
| static int[] | GetControllerBattery () |
| Gets the controller battery level. More... | |
| static string | GetAppLibraryHideList () |
| Gets the apps that are hidden in the library. More... | |
|
static |
Initializes the system service for a specified game object. Must be called before calling other system related functions.
| objectName | The name of the game object to initialize the system service for. |
|
static |
Turns on the battery service.
| objName | The name of the game object to turn on the battery service for. |
true: successfalse: failure
|
static |
Turns off the battery service.
true: successfalse: failure
|
static |
Sets the brightness for the current HMD.
| brightness | Target brightness. The valid value ranges from 0 to 255. |
true: successfalse: failure
|
static |
Gets the brightness of the current HMD.
0 to 255.
|
static |
Gets the brightness level of the current screen.
|
static |
Sets a brightness level for the current screen.
| brightness | Brightness mode:
|
| level | Brightness level. The valid value ranges from 1 to 255. If brightness is set to 1, set a desired brightness level; if brightness is set to 0, the system default brightness setting is adopted. |
|
static |
Initializes the audio device.
true: successfalse: failure
|
static |
Turns on the volume service for a specified game object.
| objName | The name of the game object to turn on the volume service for. |
true: successfalse: failure
|
static |
Turns off the volume service.
true: successfalse: failure
|
static |
Gets the maximum volume. Call InitAudioDevice to initialize the audio device before calling this function.
|
static |
Gets the current volume. Call InitAudioDevice to initialize the audio device before calling this function.
0 to 15.
|
static |
Increases the volume. Call InitAudioDevice to initialize the audio device before calling this function.
true: successfalse: failure
|
static |
Decreases the volume. Call InitAudioDevice to initialize the audio device before calling this function.
true: successfalse: failure
|
static |
Sets the volume. Call InitAudioDevice to initialize the audio device before calling this function.
| volume | The target volume. The valid value ranges from 0 to 15. |
true: successfalse: failure
|
static |
Checks whether the current device has valid permission for the game.
NullInvalidValid
|
static |
Uses the appID to get whether the entitlement required by an app is present.
| appid | The appID. |
true: successfalse: failure
|
static |
Uses the publicKey to get the entitlement check result.
| publicKey | The publickey. |
true: successfalse: failure
|
static |
Use the appID to get the error code of the entitlement check result.
| appId | The appID. |
-3: timeout-2: service not exist (old versions of ROM have no service. If the app needs to be limited to operating in old versions, this state needs processing)-1: invalid parameter0: success
|
static |
Use the publicKey to get the error code of the entitlement check result.
| publicKey | The publickey. |
-3: timeout-2: service not exist (old versions of ROM have no Service. If the app needs to be limited to operating in old versions, this state needs processing)-1: invalid parameter0: success
|
static |
Gets the SDK version.
|
static |
Gets the predicted time a frame will be displayed after being rendered.
|
static |
Sets the extra latency mode. Note: Call this function once only.
| mode | The latency mode:
|
true: successfalse: failure
|
static |
Gets the specified type of device information.
| type | The target informaiton type. Enumerations:
|
CHARGING_STATUS, an int value will be returned: 2-charging; 3-not charging.
|
static |
Controls the device to shut down or reboot.
<meta-data android:name="pico_advance_interface" android:value="0"/> to the app's AndroidManifest.xml file for calling this API, after which the app is unable to be published on the PICO Store. | deviceControl | Device action. Enumerations:
|
| callback | Callback:
|
|
static |
Installs or uninstalls app silently.
<meta-data android:name="pico_advance_interface" android:value="0"/> to the app's AndroidManifest.xml file for calling this API, after which the app is unable to be published on the PICO Store. | packageControl | The action. Enumerations:
|
| path | The path to the app package for silent installation or the name of the app package for silent uninstallation. |
| callback | Callback:
|
|
static |
Sets a Wi-Fi that the device is automatically connected to.
| ssid | Wi-Fi name. |
| pwd | Wi-Fi password. |
| callback | Callback:
|
|
static |
Removes the Wi-Fi that the device is automatically connected to.
| callback | Callback:
|
|
static |
Sets the Home key event.
| eventEnum | Target event. Enumerations:
|
| function | The function of the event. Enumerations:
|
| callback | Callback:
|
|
static |
Sets extended settings for the Home key.
| eventEnum | Target event. Enumerations:
|
| function | The function of the event. Enumerations:
|
| timesetup | The interval of key pressing is set only if there is the double click event or long pressing event. When shortly pressing the Home key, pass 0. |
| pkg | Pass null. |
| className | Pass null. |
| callback | Callback:
|
|
static |
Sets the Power key event.
| isSingleTap | Whether it is a single click event:
|
| enable | Key enabling status:
|
| callback | Callback:
|
|
static |
Sets the time the screen turns off when the device is not in use.
| timeEnum | Screen off timeout. Enumerations:
|
| callback | Callback:
|
|
static |
Sets the time the system sleeps when the device is not in use.
| timeEnum | System sleep timeout. Enumerations:
|
|
static |
Switches specified system function on/off.
| systemFunction | Function name. Enumerations:
|
| switchEnum | Whether to switch the function on/off:
|
|
static |
Sets the USB mode.
| uSBConfigModeEnum | USB configuration mode. Enumerations:
|
|
static |
Turns the screen on.
<meta-data android:name="pico_advance_interface" android:value="0"/> to the app's AndroidManifest.xml file for calling this API, after which the app is unable to be published on the PICO Store.
|
static |
Turns the screen off.
<meta-data android:name="pico_advance_interface" android:value="0"/> to the app's AndroidManifest.xml file for calling this API, after which the app is unable to be published on the PICO Store.
|
static |
Writes the configuration file to the /data/local/tmp/ path.
| path | The path to the configuration file, e.g., /data/local/tmp/config.txt. |
| content | The content of the configuration file. |
| callback | Callback:
|
|
static |
Resets all keys to default configuration.
| callback | Callback:
|
|
static |
Sets an app as the launcher app.
| switchEnum | Switch. Enumerations:
|
| packageName | The app package name. |
|
static |
Force quits app(s) by passing app PID or package name.
<meta-data android:name="pico_advance_interface" android:value="0"/> to the app's AndroidManifest.xml file for calling this API, after which the app is unable to be published on the PICO Store. | pids | An array of app PID(s). |
| packageNames | An array of package name(s). |
|
static |
Force quits background app(s) expect those in the allowlist.
<meta-data android:name="pico_advance_interface" android:value="0"/> to the app's AndroidManifest.xml file for calling this API, after which the app is unable to be published on the PICO Store. | packageNames | An array of package name(s) to be added to the allowlist. The corresponding app(s) in the allowlist will not be force quit. |
|
static |
Freezes the screen to the front. The screen will turn around with the HMD. Note: This function only supports G2 4K series.
| freeze | Whether to freeze the screen:
|
|
static |
Gets the status of the screencast function.
true: screencast onfalse: screencast off
|
static |
Casts the screen to the specified device.
| modelJson | A modelJson structure containing the following fields:
|
|
static |
Forgets the device that have been connected for screencast.
| address | Device address. |
|
static |
Renames the device connected for screencast (only the name for local storage).
| address | The MAC address of the device. |
| newName | The new device name. |
|
static |
Manually updates the device list for screencast.
| callback | The device list for screencast. |
|
static |
Gets the information of the current connected device.
|
static |
Switches the large space scene on.
| open | Whether to switch the large space scene on:
|
| callback | Callback:
|
|
static |
Gets the status of the large space scene.
| callback | Callback:
|
|
static |
Saves the large space map.
true: savedfalse: failed to save
|
static |
Exports map(s).
| callback | Callback:
|
|
static |
Imports map(s).
| callback | Callback:
|
|
static |
Gets the sensor's status.
0: null1: 3DoF3: 6DoF
|
static |
Sets the system display frequency rate.
| rate | The frequency rate: 72; 90; 120. Other values are invalid. |
|
static |
Gets the system display frequency rate.
|
static |
Gets the predicted status of the sensor.
| sensorState | Sensor's coordinate:
|
| sensorFrameIndex | Sensor frame index. |
|
static |
Gets the CPU utilization of the current device.
|
static |
Gets device temperature in Celsius.
| type | The requested type of device temperature:
|
| source | The requested source of device temperature:
|
|
static |
Connects the device to a specified Wi-Fi.
| ssid | Wi-Fi name. |
| pwd | Wi-Fi password. |
| ext | Reserved parameter, pass 0 by default. |
| callback | The callback for indicating whether the Wi-Fi connection is successful:
|
|
static |
Keeps an app active. In other words, improves the priority of an app, thereby making the system not to force quit the app.
| appPackageName | App package name. |
| keepAlive | Whether to keep the app active (i.e., whether to enhance the priority of the app):
|
| ext | Reserved parameter, pass 0 by default. |
|
static |
Enables/disables face tracking.
| enable | Whether to enable/disable face tracking:
|
|
static |
Enables/disables lipsync.
| enable | Whether to enable/disable lipsync:
|
|
static |
Gets face tracking data.
| ts | (Optional) A reserved parameter, pass 0. |
| flags | The face tracking mode to retrieve data for. Enumertions:
|
| faceTrackingInfo | Returns the PxrFaceTrackingInfo struct that contains the following face tracking data:
|
|
static |
Schedules auto startup for the device. Note: Supported by PICO Neo3 series.
| year | Year, for example, 2022. |
| month | Month, for example, 2. |
| day | Day, for example, 22. |
| hour | Hour, for example, 22. |
| minute | Minute, for example, 22. |
| open | Whether to enable scheduled auto startup for the device:
|
|
static |
Schedules auto shutdown for the device. Note: Supported by PICO Neo3 series.
| year | Year, for example, 2022. |
| month | Month, for example, 2. |
| day | Day, for example, 22. |
| hour | Hour, for example, 22. |
| minute | Minute, for example, 22. |
| open | Whether to enable scheduled auto shutdown for the device:
|
|
static |
Displays a specified settings screen. Note: Supported by PICO Neo3 and PICO 4 series.
| settingsEnum | The enumerations of settings screen:
|
| hideOtherItem | Whether to display the selected settings screen:
|
| ext | Reserved parameter, pass 0 by default. |
|
static |
Changes the Volume key's function to that of the Home and Enter key's, or restores the volume adjustment function to the Volume key.
| switchEnum | Whether to change the Volume key's function:
|
| ext | Reserved parameter, pass 0 by default. |
|
static |
Gets whether the Volume key's function has been changed to that of the Home and Enter key's.
S_ON: changedS_OFF: not changed
|
static |
Upgrades the OTA.
| otaPackagePath | The location of the OTA package. |
0: success1: failure2: OTA package version too low
|
static |
Gets the configuration of the Wi-Fi nerwork that the device automatically connnects to.
|
static |
Gets the scheduled auto startup settings for the device.
open: the status of scheduled auto startup:true: enabledfalse: disabledtime: the time when the device auto starts up. Returned when open is true.
|
static |
Gets the scheduled auto shutdown settings for the device.
open: the status of scheduled auto shutdown:true: enabledfalse: disabledtime: the time when the device auto shuts down. Returned when open is true.
|
static |
Gets the status of a specified controller key.
| pxrControllerKey | The enumerations of controller key:
|
0: disabled1: enabled
|
static |
Gets the status of the switch for setting whether to power off the USB cable when the device is shut down.
PBS_SwitchEnum#S_ON: onPBS_SwitchEnum#S_OFF: off
|
static |
Gets the screen timeout setting for the device.
PBS_ScreenOffDelayTimeEnum: the enumerations of screen timeout.
|
static |
Gets the sleep timeout settings for the device.
PBS_SleepDelayTimeEnum: the enumeration of sleep timeout.
|
static |
Gets the Power key's settings.
null: not setsingleTap: whether a single-tap event has been setlongTap: whether a long-press event has been setlongPressTime: the time after which the long-press event takes place. Returned when longTap is true.
|
static |
Get the Enter key's status.
0: disabled1: enabled
|
static |
Get the Volume key's status.
0: disabled1: enabled
|
static |
Get the Back key's status.
0: disabled1: enabled
|
static |
Gets the event setting for the Home key.
| homeEvent | The enumerations of event type:
|
null.PropertySetHomeKey or PropertySetHomeKeyAll.
|
static |
Gets the status of a specified system function switch.
| systemFunction | The enumerations of system function switch:
|
| callback | The callback that returns the switch's status:
|
|
static |
Gets the configured USB mode.
MTP: MTP modeCHARGE: charging mode
|
static |
Gets the current launcher.
|
static |
Initializes the screencast service.
| callback | The callback:
|
0: failure1: success
|
static |
Sets whether to show the screencast authorization window.
| authZ |
|
0: failure1: success
|
static |
Gets the setting of whether to show the screencast authorization window.
0: ask every time (default)1: always allow2: not accepted
|
static |
Gets the URL for screencast.
| urlType | The enumerations of URL type:
|
|
static |
Stops screencast.
0: failure1: success
|
static |
sets screencast-related properties.
| castOptionOrStatus | The enumerations of the property to set:
|
| castOptionValue | The values that can be set for each property:
|
0: failure1: success
|
static |
Gets the screencast-related property setting for the current device.
| castOptionOrStatus | The enumerations of the screencast property to get setting for:
|
OPTION_RESOLUTION_LEVEL:OPTION_VALUE_RESOLUTION_HIGHOPTION_VALUE_RESOLUTION_MIDDLEOPTION_VALUE_RESOLUTION_AUTOOPTION_VALUE_RESOLUTION_HIGH_2KOPTION_VALUE_RESOLUTION_HIGH_4KOPTION_BITRATE_LEVEL:OPTION_VALUE_BITRATE_HIGHOPTION_VALUE_BITRATE_MIDDLEOPTION_VALUE_BITRATE_LOWOPTION_AUDIO_ENABLE:OPTION_VALUE_AUDIO_ONOPTION_VALUE_AUDIO_OFFPICOCAST_STATUS :STATUS_VALUE_STATE_STARTEDSTATUS_VALUE_STATE_STOPPEDSTATUS_VALUE_ERROR
|
static |
Sets the duration after which the controllers enter the pairing mode.
| timeEnum | Duration enumerations:
|
| callback | Returns the result:
|
|
static |
Gets the duration after which the controllers enter the pairing mode.
| callback | Returns a duration enumeration from the following:
|
|
static |
Sets the system language for the device. For a language that is spoken in different countries/regions, the system language is then co-set by the language code and the device's country/region code. For example, if the lanaguage code is set to en and the device's country/region code is US, the system language will be set to English (United States).
| language | Supported language codes:
|
0: success1: failure22: invalid language
|
static |
Gets the device's system language.
SetSystemLanguage.
|
static |
Sets a default Wi-Fi network for the device. Once set, the device will automatically connect to the Wi-Fi network if accessible.
| ssid | The SSID (name) of the Wi-Fi network. |
| pwd | The password of the Wi-Fi network. |
0: success1: failure
|
static |
Gets the device's default Wi-Fi network.
|
static |
Sets a country/region for the device.
| countryCode | The country/region code co-determines the device's system lanaguge with the language code you set via SetSystemLanguage. Below are supported country/region codes:
|
| callback | Set the callback to get the result:
|
|
static |
Gets the device's country/region code.
SetSystemCountryCode.
|
static |
Sets the page to skip in initialization settings.
| flag | Set the flag. The first 6 bits are valid, the 7th to 32rd bits are reserved. For each bit, 0 indicates showing and 1 indicates hiding.
|
Below is an example implementation:
0: success1: failure
|
static |
Gets the page to skip in initialization settings.
SetSkipInitSettingPage.
|
static |
Gets whether the initialization settings have been complete.
0: not complete1: complete
|
static |
Starts an activity in another app.
| packageName | (Optional) The app's package name. |
| className | (Optional) The app's class name. |
| action | (Optional) The action to be performed. |
| extra | The basic types of standard fields that can be used as extra data. See here for details. |
| categories | Standard categories that can be used to further clarify an Intent. Add a new category to the intent. See here for details. |
| flags | Add additional flags to the intent. See here for details. |
Below is an example implementation:
0: success1: failure
|
static |
Sets a GPU or CPU level for the device.
| which | Choose to set a GPU or CPU level:
|
| level | Select a level from the following:
|
0: success1: failure
|
static |
Gets the device's GPU or CPU level.
| which | Choose to get GPU or CPU level:
|
POWER_SAVINGS: power-saving levelSUSTAINED_LOW: low levelSUSTAINED_HIGH: high levelBOOST: top-high level, be careful to use this level
|
static |
Sets FOV in four directions (left, right, up, and down) for specified eye(s).
| eye | The eye to set FOV for:
|
| fovLeft | The horizontal FOV (in degrees) for the left part of the eye, for example, 47.5. |
| fovRight | The horizontal FOV (in degrees) for the right part of the eye.. |
| fovUp | The vertical FOV (in degrees) for the upper part of the eye. |
| fovDown | The vertical FOV (in degrees) for the lower part of the eye. |
0: success1: failure
|
static |
Shows/hides specified app(s) in the library.
| packageNames | Package name(s). If there are multiple names, use commas (,) to separate them. |
| switchEnum | Specifies to show/hide the app(s), enums:
|
0: success1: failure
|
static |
Gets the controller connectivity status.
0: both controllers are disconnected1: the left controller is connected2: the right controller is connected3: both controllers are connected
|
static |
Gets the controller battery level.
|
static |
Gets the apps that are hidden in the library.