|
LunaSysMgr
|
Private methods:
Private.
com.palm.display/control/setState
Set the state of the display.
| state | The state to which the display is set. Can be:
|
| @subsection | com_palm_display_control_set_state_examples Examples: luna-send -n 1 -f luna://com.palm.display/control/setState '{ "state": "dock" }'
|
Example response for a succesful call:
Example response for a failed call:
Private.
com.palm.display/control/getProperty
Get display properties.
| properties | List of properties to get, can include one or more of the following:
|
| returnValue | Indicates if the call was succesful. |
| errorCode | Code for the error if call was not succesful. |
| errorText | Describes the error if call was not succesful. |
Example response for a succesful call:
Example response for a failed call:
Private.
com.palm.display/control/setProperty
Set display properties.
| requestBlock | Block changes of display state. Requires client parameter to be set. |
| client | Client ID. |
| powerKeyBlock | Block the power key. Requires client parameter to be set. |
| timeout | Timeout in seconds for the display to turn off. |
| onWhenConnected | Should the display remain on when a USB cable is connected to the device. |
| maximumBrightness | Display maximum brightness. |
| proximityEnabled | Toggle proximity sensor. Requires client parameter to be set. |
| returnValue | Indicates if the call was succesful. |
| errorCode | Code for the error if call was not succesful. |
| errorText | Describes the error if call was not succesful. |
Example response for a succesful call:
Example response for a failed call:
Private.
com.palm.display/control/status
Get the status of the display.
| subscribe | Subscribe for updates. |
| returnValue | Indicates if the call was succesful. |
| event | Event that triggered this call. |
| state | State of the display. "Undefined", "dimmed", "off" or "on". |
| timeout | Time in seconds after which the display turns off. |
| blockDisplay | True if display state is blocked from changes. |
| active | True if the timer that shuts down the display after timeout seconds of inactivity is running. |
| subscribed | True if subscribed for updates. |
Example response for a succesful call: