com.datalogic.device.app.PackageInstallerListener |
This interface is used by the application to listen to install/uninstall/upgrade result event.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
onResult will be called to signal the result of the commands install/uninstall/upgrade executed in a session or as standolone command.
|
onResult will be called to signal the result of the commands install/uninstall/upgrade executed in a session or as standolone command.
When the commands are submitted in a session the results in the List have the same order of the commands in the session.
In any case the fields event and data of PackageInstallerResult allow the identification of the command.
results | PackageInstallerResult
List result of the commands e.g: results[0] = {event = INSTALL_TERMINATED, data = "/dir1/dir11/dir116/pkg1.apk", result = InstallerException.SUCCESS} results[1] = {event = UNINSTALL_TERMINATED, data = "com.android.helloandroid", result = InstallerException.SUCCESS} |
---|