PICO Unity XR SDK
|
Static Public Member Functions | |
static void | InitEnterpriseService (string objectName) |
Initializes the enterprise service for a specified object. Must be called before calling other enterprise APIs. More... | |
static void | BindEnterpriseService () |
Binds the enterprise service. Must be called before calling other system related functions. | |
static void | UnBindEnterpriseService () |
Unbinds the enterprise service. | |
static bool | StartBatteryReceiver (string objName) |
Turns on the power service for a specified object. More... | |
static bool | StopBatteryReceiver () |
Turns off the power 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 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 using this API. More... | |
static int | GetCurrentVolumeNumber () |
Gets the current volume. Call InitAudioDevice to initialize the audio device before using this API. More... | |
static bool | VolumeUp () |
Increases the volume. Call InitAudioDevice to initialize the audio device before using this API. More... | |
static bool | VolumeDown () |
Decreases the volume. Call InitAudioDevice to initialize the audio device before using this API. More... | |
static bool | SetVolumeNum (int volume) |
Sets a volume. Call InitAudioDevice to initialize the audio device before using this API. More... | |
static string | StateGetDeviceInfo (SystemInfoEnum type) |
Gets the specified type of device information. More... | |
static void | ControlSetDeviceAction (DeviceControlEnum deviceControl, Action< int > callback) |
Shuts down or reboots the device. 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 button event. More... | |
static void | PropertySetHomeKeyAll (HomeEventEnum eventEnum, HomeFunctionEnum function, int timesetup, string pkg, string className, Action< bool > callback) |
Sets extended settings for the Home button. More... | |
static void | PropertyDisablePowerKey (bool isSingleTap, bool enable, Action< int > callback) |
Sets the Power button's 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 configuration mode. 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 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 button. | |
static void | DisableEnterKey () |
Disables the Confirm button. | |
static void | EnableVolumeKey () |
Enables the Volume button. | |
static void | DisableVolumeKey () |
Disables the Volume button. | |
static void | EnableBackKey () |
Enables the Back button. | |
static void | DisableBackKey () |
Disables the Back button. | |
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 buttons 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. 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 looking for devices that can be used for screen casting. | |
static void | StopScan () |
Stops looking 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. The name is only for local storage. More... | |
static void | SetWDModelsCallback () |
Sets the callback for the scanning result, which returns List<PBS_WifiDisplayModel> that contains the devices previously connected for screencast and the devices currently found for screencast. | |
static void | SetWDJsonCallback () |
Sets the callback for the scanning result, which returns the JSON string that contains the devices previously connected for screencast and the devices currently found for screencast. | |
static void | UpdateWifiDisplays (Action< string > callback) |
Manually updates the list of devices for screencast. More... | |
static string | GetConnectedWD () |
Gets the information of the currently 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 maps. The exported maps are stored in the /maps/export file. More... | |
static void | ImportMaps (Action< bool > callback) |
Imports maps. Need to copy maps to the /maps folder. More... | |
static float[] | GetCpuUsages () |
Gets each CPU's utilization for the current device. More... | |
static float[] | GetDeviceTemperatures (int type, int source) |
Gets device temperature in Celsius. More... | |
static void | Capture () |
Captures the current screen. More... | |
static void | Record () |
Records the screen. Call this function again to stop recording. More... | |
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 | TimingStartup (int year, int month, int day, int hour, int minute, bool open) |
Schedules auto startup for the device. More... | |
static void | TimingShutdown (int year, int month, int day, int hour, int minute, bool open) |
Schedules auto shutdown for the device. More... | |
static void | StartVrSettingsItem (StartVRSettingsEnum settingsEnum, bool hideOtherItem, int ext) |
Displays a specified settings screen. More... | |
static void | SwitchVolumeToHomeAndEnter (SwitchEnum switchEnum, int ext) |
Changes the Volume button's function to that of the Home and Enter button's, or restores the volume adjustment function to the Volume button. More... | |
static SwitchEnum | IsVolumeChangeToHomeAndEnter () |
Gets whether the Volume button's function has been changed to that of the Home and Enter button's. More... | |
static int | InstallOTAPackage (String otaPackagePath) |
Upgrades the OTA. More... | |
static string | GetAutoConnectWiFiConfig () |
Gets the configuration of the Wi-Fi network that the device automatically connects 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 button. More... | |
static int | SetControllerKeyState (ControllerKeyEnum pxrControllerKey, SwitchEnum status) |
Enables or disables a specified controller button. More... | |
static SwitchEnum | GetPowerOffWithUSBCable () |
Gets the status of the switch which is for powering 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 current settings for the Power button. More... | |
static int | GetEnterKeyStatus () |
Get the Enter button's status. More... | |
static int | GetVolumeKeyStatus () |
Get the Volume button's status. More... | |
static int | GetBackKeyStatus () |
Get the Back button's status. More... | |
static string | GetHomKeyStatus (HomeEventEnum homeEvent) |
Gets the event settings for the Home button. 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 options. More... | |
static PICOCastOptionValueEnum | PICOCastGetOptionOrStatus (PICOCastOptionOrStatusEnum castOptionOrStatus) |
Gets the screencast settings for the current device. 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 language 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 | CustomizeAppLibrary (String[] packageNames, SwitchEnum switchEnum) |
Shows/hides specified app(s) in the library. More... | |
static int[] | GetControllerBattery () |
Gets the controller's battery level. More... | |
static int | GetControllerConnectState () |
Gets the controller's connection status. More... | |
static string | GetAppLibraryHideList () |
Gets the apps that are hidden in the library. More... | |
static int | SetScreenCastAudioOutput (ScreencastAudioOutputEnum screencastAudioOutput) |
Sets the device that outputs audio during screen casting. More... | |
static ScreencastAudioOutputEnum | GetScreenCastAudioOutput () |
Gets the device that outputs audio during screen casting. More... | |
static int | UPxr_CustomizeSettingsTabStatus (CustomizeSettingsTabEnum customizeSettingsTabEnum, SwitchEnum switchEnum) |
Displays or hides the specified tab or option on the Settings pane. More... | |
static SwitchEnum | UPxr_GetCustomizeSettingsTabStatus (CustomizeSettingsTabEnum customizeSettingsTabEnum) |
Gets the status set for the specified tab or option on the Settings pane. More... | |
Enterprise APIs are only supported by enterprise devices, including PICO Neo2, Neo2 Eye, Neo3 Pro, Neo3 Pro Eye, G2 4K/4K E/4K Plus (system version 4.0.3 or later), and PICO 4 Enterprise. Do not use them on consumer devices.
|
static |
Initializes the enterprise service for a specified object. Must be called before calling other enterprise APIs.
objectName | The name of the object to initialize the enterprise service for. |
|
static |
Turns on the power service for a specified object.
objName | The name of the object to turn on the power service for. |
true
: successfalse
: failure
|
static |
Turns off the power service.
true
: successfalse
: failure
|
static |
Sets the brightness for the current HMD.
brightness | Target brightness. Value range: [0,255]. |
true
: successfalse
: failure
|
static |
Gets the brightness of the current HMD.
|
static |
Gets the brightness level of the current screen.
|
static |
Sets a brightness level for the current screen.
brightness | Brightness mode:
|
level | Brightness level. Value range: [1,255]. |
|
static |
Initializes the audio device.
true
: successfalse
: failure
|
static |
Turns on the volume service for a specified object.
objName | The name of the 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 using this API.
|
static |
Gets the current volume. Call InitAudioDevice
to initialize the audio device before using this API.
|
static |
Increases the volume. Call InitAudioDevice
to initialize the audio device before using this API.
true
: successfalse
: failure
|
static |
Decreases the volume. Call InitAudioDevice
to initialize the audio device before using this API.
true
: successfalse
: failure
|
static |
Sets a volume. Call InitAudioDevice
to initialize the audio device before using this API.
volume | The target volume. Value range: [0,15]. |
true
: successfalse
: failure
|
static |
Gets the specified type of device information.
type | The target information type. Enumerations:
|
CHARGING_STATUS
, an int value will be returned: 2
-charging; 3
-not charging.
|
static |
Shuts down or reboots the device.
<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 button event.
eventEnum | Target event. Enumerations:
|
function | The function of the event. Enumerations:
|
callback | Callback:
|
|
static |
Sets extended settings for the Home button.
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 button, pass 0 . |
pkg | Pass null . |
className | Pass null . |
callback | Callback:
|
|
static |
Sets the Power button's event.
isSingleTap | Whether it is a single click event:
|
enable | Enable or disable the Power button:
|
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 configuration mode.
uSBConfigModeEnum | USB configuration mode. Enumerations:
|
|
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 |
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 | Whether the configuration file has been successfully written:
|
|
static |
Resets all buttons to default configuration.
callback | Whether all keys have been successfully reset to default configuration:
|
|
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.
freeze | Whether to freeze the screen:
|
|
static |
Gets the status of the screencast function.
true
: onfalse
: 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. The name is only for local storage.
address | The MAC address of the device. |
newName | The new device name. |
|
static |
Manually updates the list of devices for screencast.
callback | The list of devices for screencast. |
|
static |
Gets the information of the currently 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 | Returns the status of large space:
|
|
static |
Saves the large space map.
true
: savedfalse
: failed to save
|
static |
Exports maps. The exported maps are stored in the /maps/export file.
callback | Returns the result:
|
|
static |
Imports maps. Need to copy maps to the /maps folder.
callback | Returns the result:
|
|
static |
Gets each CPU's utilization for the current device.
|
static |
Gets device temperature in Celsius.
type | The requested type of device temperature:
|
source | The requested source of device temperature:
|
|
static |
Captures the current screen.
|
static |
Records the screen. Call this function again to stop recording.
|
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 . |
|
static |
Schedules auto startup for the device.
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.
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.
settingsEnum | The enumerations of settings screen:
|
hideOtherItem | Whether to display the selected settings screen:
|
ext | Reserved parameter, pass 0 . |
|
static |
Changes the Volume button's function to that of the Home and Enter button's, or restores the volume adjustment function to the Volume button.
switchEnum | Whether to change the Volume button's function:
|
ext | Reserved parameter, pass 0 . |
|
static |
Gets whether the Volume button's function has been changed to that of the Home and Enter button's.
S_ON
: changedS_OFF
: not changed
|
static |
Upgrades the OTA.
otaPackagePath | The location of the OTA package. |
0
: success1
: failure21
: OTA package version too low
|
static |
Gets the configuration of the Wi-Fi network that the device automatically connects 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, for example, 1658980380000
. 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, for example, 1658980380000
. Returned when open
is true
.
|
static |
Gets the status of a specified controller button.
pxrControllerKey | The enumerations of controller button:
|
0
: disabled1
: enabled
|
static |
Enables or disables a specified controller button.
pxrControllerKey | The enumerations of controller button:
|
status | Whether to enable or disable the button:
|
0
indicates success, other values indicate failure.
|
static |
Gets the status of the switch which is for powering off the USB cable when the device is shut down.
S_ON
: onS_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 current settings for the Power button.
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 button's status.
0
: disabled1
: enabled
|
static |
Get the Volume button's status.
0
: disabled1
: enabled
|
static |
Get the Back button's status.
0
: disabled1
: enabled
|
static |
Gets the event settings for the Home button.
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 Returns 0
when there is no microphone permission.
|
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 options.
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 settings for the current device.
castOptionOrStatus | The enumerations of the screencast property to get setting for:
|
OPTION_RESOLUTION_LEVEL
:OPTION_VALUE_RESOLUTION_HIGH
OPTION_VALUE_RESOLUTION_MIDDLE
OPTION_VALUE_RESOLUTION_AUTO
OPTION_VALUE_RESOLUTION_HIGH_2K
OPTION_VALUE_RESOLUTION_HIGH_4K
OPTION_BITRATE_LEVEL
:OPTION_VALUE_BITRATE_HIGH
OPTION_VALUE_BITRATE_MIDDLE
OPTION_VALUE_BITRATE_LOW
OPTION_AUDIO_ENABLE
:OPTION_VALUE_AUDIO_ON
OPTION_VALUE_AUDIO_OFF
PICOCAST_STATUS
:STATUS_VALUE_STATE_STARTED
STATUS_VALUE_STATE_STOPPED
STATUS_VALUE_ERROR
|
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 language 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 language 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. |
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's battery level.
|
static |
Gets the controller's connection status.
0
: both controllers are disconnected1
: the left controller is connected2
: the right controller is connected3
: both controllers are connected
|
static |
Gets the apps that are hidden in the library.
|
static |
Sets the device that outputs audio during screen casting.
screencastAudioOutput | Specifies the device that outputs audio. Enumerations: AUDIO_SINK : the HMD AUDIO_TARGET : the receiver AUDIO_SINK_TARGET : both the HMD and the receiver |
0
: success1
: failure
|
static |
Gets the device that outputs audio during screen casting.
AUDIO_SINK
: the HMD AUDIO_TARGET
: the receiver AUDIO_SINK_TARGET
: both the HMD and the receiver
|
static |
Displays or hides the specified tab or option on the Settings pane.
customizeSettingsTabEnum | Specifies the tab or option to display or hide. Enumerations:
|
switchEnum | Sets to display or hide the specified tab or option: S_ON : display S_OFF : hide |
0
: success1
: failure
|
static |
Gets the status set for the specified tab or option on the Settings pane.
customizeSettingsTabEnum | Specifies the tab or option to get status for. Enumerations:
|
S_ON
: displayed S_OFF
: hidden