LunaSysMgr
|
Public methods:
Public.
com.palm.appinstaller/install
Install an application.
target | Package file. Required. |
id | ID for the package. |
uncompressedSize | Uncompressed size of the package. |
subscribe | Set to true to receive status change events. |
returnValue | Indicates if the call was succesful. |
subscribed | Indicates if subscribed to receive status change events. |
ticket | Identifier that was assigned for the installation request. |
ticket | Identifier that was assigned for the installation request. |
status | Describes the installation status. |
Example response for a succesful call:
Example status updates for a failed installation when subscribed:
Example response for a failed call:
Public.
com.palm.appinstaller/installNoVerify
Install a package without verification.
target | Package file. Required. |
uncompressedSize | Uncompressed size of the package. |
systemMode | Set to true to turn on system mode, which disables ipkg flags. |
subscribe | Set to true to receive status change events. |
returnValue | Indicates if the call was succesful. |
ticket | Identifier that was assigned for the installation request. |
subscribed | Indicates if subscribed to receive status change events. |
ticket | Identifier that was assigned for the installation request. |
status | Describes the installation status. |
Example response for a succesful call:
Example of status changes for a failed installation:
Example response for a failed call:
Public.
com.palm.appinstaller/remove
Remove a package.
packageName | Name of the package to remove. |
subscribe | Set to true to receive events on status changes. |
ticket | Identifier for the removal. |
returnValue | Indicates if the call was succesful. |
version | Installed version of the package. |
subscribed | Indicates if subscribed to receive status change events. |
ticket | Identifier for the removal. |
status | Describes the status of the remove action. |
Example response for a succesful call:
Examples of removal status changes:
Example response for a failed call:
Public.
com.palm.appinstaller/notifyOnChange
Subscribe to receive notifications when applications are installed or removed.
appId | ID of the application to watch. If not specified, notifications are received for all applications. |
returnValue | Indicates if the call was succesful. |
subscribed | True when subscribed to receive change events. |
appId | ID of the watched application, or * in case all applications are watched. |
appId | ID of the application. |
version | Version of the application. |
statusChange | Describes the status change. |
cause | What caused the change. |
Example response for a succesful call:
Example of an application removal:
Public.
com.palm.appinstaller/getUserInstalledAppSizes
Get sizes for user installed applications.
returnValue | Indicates if the call was succesful. |
apps | Object array, see fields of contained objects below. |
appName | Name of the application. |
size | Size of the application in kilobytes. |
totalSize | Combined size of all the applications in kilobytes. |
Example response for a succesful call:
Public.
com.palm.appinstaller/queryInstallCapacity
Query for the space that is available, and space that is required to install an application package.
appId | Application ID. Either this, or packageId is required. |
packageId | Package ID. Either this, or appId is required. |
size | Size of the package in kilobytes. Required. |
uncompressedSize | Uncompressed size of the package in kilobytes. |
returnValue | Indicates if the call was succesful. |
result | Available space in kilobytes. |
spaceNeededInKB | Space required to install the package. |
errorCode | Error code in case the call failed. |
errorText | Describes the error in more detail. |
Example response for a succesful call:
Example response for a failed call:
Public.
com.palm.appinstaller/revoke
Revoke one on more applications.
item | Object. |
payload | Object. |
signature | Valid signature required to revoke applications. |
appId | IDs of applications to revoke |
returnValue | Indicates if the call was succesful. |
errorCode | Describes the error if call was not succesful. |
Example response for a succesful call:
Example response for a failed call: