Click or drag to resize

Com.Datalogic.Device.App Namespace

Classes
  ClassDescription
Public classAppManager
Public classAppManagerException
Public classPackageInstaller
To install an application do the following steps:
  1. Obtain an instance of PackageInstaller with [!:Com.Datalogic.Device.App.PackageInstaller.PackageInstaller(Context)]. -
  2. Obtain an instance of IPackageInstallerListener that will be used to handle the result of the command. This object must be passed as parameter to the install method. -
  3. To perform the install session call [!:Com.Datalogic.Device.App.PackageInstaller.install(java.lang.String,%20boolean,%20com.datalogic.device.app.PackageInstallerListener)]. The method onResult of the listener will be called when the install session has completely finished, either with success or failure. -
Public classPackageInstallerEvent
Public classPackageInstallerEventArgs
To be added.
Public classPackageInstallerException
Public classPackageInstallerResult
Public classPackageInstallerSession
To install two applications using a session do the following steps:
  1. Obtain an instance of PackageInstaller with [!:Com.Datalogic.Device.App.PackageInstaller.PackageInstaller(Context)]. -
  2. Obtain an instance of IPackageInstallerListener that will be used to handle the result of the commands invoked on the session. -
  3. Create a PackageInstallerSession calling CreateSession(IPackageInstallerListener). The CreateSession(IPackageInstallerListener) method takes as parameters the instance of IPackageInstallerListener created at the previous step. -
  4. Start a session calling OpenSession. -
  5. Call [!:Com.Datalogic.Device.App.PackageInstallerSession.install(java.lang.String,%20boolean)] to install the first application. -
  6. Call [!:Com.Datalogic.Device.App.PackageInstallerSession.install(java.lang.String,%20boolean)] to install the second application. -
  7. Close and commit the session calling CloseSession. -
  8. The method onResult of the listener will be called when the execution of all the commands of the transaction are completed, either with success or failure. It contains the result of each command. -
Interfaces