|
LunaSysMgr
|
Public methods:
Public.
com.palm.systemmanager/systemUi
Send commands to the system UI.
The type of the commands depends on the target.
Syntax:
Valid commands for the launcheraction are:
showAppMenu Shows the application menu. showAppInfo Shows application info. editPageTitle Edit the page title.Example:
Syntax:
Valid commands for virtualkeyboard:
get Will get a named value from the current keyboard. height Set the height for the keyboard in pixels. size Set a pre-defined size for the keyboard, -2 is XS, -1 is S, 0 is M, and 1 is L. hide Hide the keyboard if the value is true.Example:
Show or hide the quicklaunch dock.
Syntax:
Example:
Show or hide the universal search.
Syntax:
Example:
Show or hide the launcher.
Syntax:
Example:
Send commands to launcher menu.
Syntax:
Valid commands for launchermenu:
addcard reordercards deletecard invokerenamecard other Example:
Change a card title in the launcher.
Syntax:
| id | Id of the card. |
| label | New title for the card. |
Public.
com.palm.systemmanager/getAppRestoreNeeded
Subscribe to events indicating application restore is needed.
| subscribe | Set to true to subscribe to status change events. |
| returnValue | Indicates if the call was succesful. |
| subscribed | True if subscribed to events. |
Example response for a succesful call:
Public.
com.palm.systemmanager/clearCache
Clear the webkit cache.
| returnValue | Indicates if the call was succesful. |
Example response for a succesful call:
Public.
com.palm.systemmanager/takeScreenShot
Take a screenshot.
| file | Destination path for the screenshot image. Can be absolute or relative path. If the path is relative, the image will be stored under home folder. |
| @subsection | com_palm_systemmanager_take_screen_shot_examples Examples: luna-send -n 1 -f luna://com.palm.systemmanager/takeScreenShot '{ "file": "screenshot.jpg" }'
|
Example response for a succesful call:
Example response for a failed call:
Public.
com.palm.systemmanager/applicationHasBeenTerminated
Subscribe to events indicating application has been terminated
| subscribe | Set to true to subscribe to events. |
| returnValue | Indicates if the call was succesful. |
| subscribed | True if subscribed to events. |
Example response for a succesful call:
Public.
com.palm.systemmanager/getForegroundApplication
Get foreground application.
| subscribe | Set to true to receive events when foregound application changes. |
| title | Title of the application. |
| id | Id of the application. |
| appmenu | Title of the application menu. |
| returnValue | Indicates if the call was succesful |
| subscribed | True if subscribed to events. |
Example response when an application is running:
Exmple response when there is no foreground application:
Public.
com.palm.systemmanager/getLockStatus
Get status of screen lock.
| subscribe | Set to true to receive events when screen lock status changes. |
| locked | True if the screen is locked. |
| returnValue | Indicates if the call was succesful |
| subscribed | True if subscribed to events. |
Example response for a succesful call:
Public.
com.palm.systemmanager/getDockModeStatus
Find out if device is in dock mode.
| subscribe | Set to true to receive events when screen lock status changes. |
| enabled | True if the device is in dock mode. |
| returnValue | Indicates if the call was succesful |
| subscribed | True if subscribed to events. |
Example response for a succesful call:
Public.
com.palm.systemmanager/setDevicePasscode
Set device lock mode and passcode. This can be a simple pin code with just digits, or a password with any characters.
| lockMode | Can be "pin" or "password". |
| passCode | New passcode. Pin should contain only digits, but password can contain any characters. |
| returnValue | Indicates if the call was succesful. |
| errorText | Describes the error if the call was not succesful. |
| errorCode | Code for the error if the call was not succesful. |
Example response for a succesful call:
Public.
com.palm.systemmanager/matchDevicePasscode
Check the passcode received from user against the one set to the device.
| passCode | Code to check. |
| returnValue | Indicates if the passcode was correct. |
| lockedOut | Was the user locked out. |
| retriesLeft | How many retries are left. |
Example response for a succesful call:
Public.
com.palm.systemmanager/getDeviceLockMode
Check the device lock mode.
| subscribe | Set to true to reveive events when lock mode changes. |
| returnValue | Indicates if the call was succesful |
| subscribed | True if subscribed to receive mode change events. |
| lockMode | Current lock mode, "password", "pin", or "none". |
| policyState | Exchange Auto Sync security policy state, "none", "active" or "pending". |
| retriesLeft | Number of passcode attempts left. |
Example response for a succesful call:
Public.
com.palm.systemmanager/getSecurityPolicy
Get information about the Exchange Active Sync (EAS) security policy.
| policy | Policy object, see fields below. |
| password | Password object, see fields below. |
| enabled | Is password enabled. |
| minLength | Minimum length for the password. |
| maxRetries | Maximum amount of retries when inputting password. |
| alphanumeric | If true, password needs to have both numbers and letters. |
| inactivityInSeconds | Inactive time in seconds after which device is locked. |
| id | Policy ID. |
| status | Status object, see fields below. |
| enforced | Is policy enforced. |
| retriesLeft | Number of retries left when inputting password. |
| returnValue | Indicates if the call was succesful. |
Example response for a succesful call:
Public.
com.palm.systemmanager/updatePinAppState
Update pin code application state.
| state | New state, can be "cancel" or "unlock". |
| returnValue | Indicates if the call was succesful or not. |
Example response for a succesful call:
Example response for a failed call:
Public.
com.palm.systemmanager/getBootStatus
Check the device boot status.
| subscribe | Set to true to receive events when boot status changes. |
| finished | Is boot sequence finished. |
| firstUse | Is this the first time the device is booted. |
| returnValue | Indicates if the call was succesful. |
| subscribed | True if subscribed to receive boot status change events. |
Example response for a succesful call:
Public.
com.palm.systemmanager/runProgressAnimation
| type | Type of the animation, "msm" or "fsck". |
| state | New state for the animation. "start" shows the animation, and "stop" hides it. |
| returnValue | Indicates if the call was succesful. |
Example response for a succesful call:
Example response for a failed call:
Public.
com.palm.systemmanager/setJavascriptFlags
Set JavaScript flags.
| flags | The flags you want to set. |
| returnValue | Indicates if the call was succesful. |
Example response for a succesful call:
Example response for a failed call:
Public.
com.palm.systemmanager/setAnimationValues
Set animation parameters.
| <key> | Key-value pairs for the parameters. |
| returnValue | Indicates if the call was succesful. |
Example response for a succesful call:
Example response for a failed call:
Public.
com.palm.systemmanager/getAnimationValues
Get animation parameters.
| <key> | Key-value pairs for the parameters. |
| returnValue | Indicates if the call was succesful. |
Example response for a succesful call:
Public.
com.palm.systemmanager/lockButtonTriggered
Subscribe to lock button trigger events.
| subscribe | Set to true to subscribe to lock button trigger events. |
| returnValue | Indicates if the call was succesful. |
| subscribed | True if subscribed to receive lock button trigger events. |
| triggered | True if lock button was triggered. |
Example response for a succesful call:
Public.
com.palm.systemmanager/subscribeToSystemUIResponses
Subscribe to messages published by SystemUI.
| returnValue | Indicates if the call was succesful. |
| subscribed | True if subscribed to system UI events. |
Example response for a succesful call:
Example response for a failed call:
Public.
com.palm.systemmanager/publishToSystemUI
Publish messages to/from system UI. If message comes from system UI, the message will be published to listeners of subscribeToSystemUIResponses().
| event | Type of the event. |
| message | Message to display. |
| returnValue | Indicates if the call was succesful. |
Example response for a succesful call:
Example response for a failed call:
Public.
com.palm.systemmanager/getSystemStatus
Get information about system status.
| subscribe | Set to true to receive system status change events. |
| ime | Object, see field below. |
| visible | Is IME (input method, i.e. virtual keyboard) visible. |
| orientation | Object containing device and UI orientation information. See fields below. |
| ui | Orientation of the UI. "up", "down", "left" or "right". |
| device | Orientation of the device. "up", "down", "left", "right", "faceup" or "facedown". |
| subscribed | Indicates if subscribed to receive status change events. |
| returnValue | Indicates if call was succesful. |
Example response for a succesful call:
Example of a status change event after subscribing:
Public.
com.palm.systemmanager/dismissModalApp
Dismiss a modal application.
| subscribe | Subscribe to receive status change events. Must be set to true. |
| modalId | Id of the modal application to dismiss. |
| returnValue | Indicates if the call was succesful. |
| returnMessage | A message. |
| dismissResult | Describes the dismiss status. |
| subscribed | Indicates if subscribed to receive status change messages. |
Example responses:
Public.
com.palm.systemmanager/launchModalApp
Launch an application as a modal window from another application.
| subscribe | Must be set to true. |
| callerId | Id of the caller application. |
| launchId | Id of the application to launch. |
| params | Parameters for the application that is launched. |
| returnValue | Indicates if the call was succesful, i.e. true in this case. |
| launchResult | Description of launch status. |
| modalId | Id for the modal application window. |
| subscribed | True if subscribed to receive status change events. |
| returnValue | Indicates if the call was succesful, i.e. false in this case. |
| errorText | Describes the error. |
| subscribed | Indicates if subscribed. |
| errorCode | Code for the error. |
Example response for a succesful launch:
Example response for a failed call:
Public.
com.palm.systemmanager/touchToShareDeviceInRange
Start or stop the animation that indicates to user that Touch-to-share is active.
| inRange | Set to true to start the animation and false to stop it. |
| returnValue |
Example response for a succesful call:
Public.
com.palm.systemmanager/touchToShareAppUrlTransferred
After Touch-to-share transfer is complete, call this to show the appropriate animation and minimize the application.
| appid | ID of the target app. |
| returnValue | Indicates if the call was succesful. |
Example response for a succesful call:
Public.
com.palm.systemmanager/subscribeTurboMode
Subscribe to turbo mode status changes. Turbo mode is enabled on subscription, if it was not yet enabled.
| subscribe | Set to true to enable turbo mode and receive events when turbo mode changes. Set to false to remove subscription. |
| returnValue | Indicates if call was succesful. |
| subscribed | True if subscribed to receive events when turbo mode changes. |
Example response for a succesful call: