public class PackageManagerListener
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Constructor and Description |
---|
PackageManagerListener() |
PackageManagerListener(long cPtr,
boolean cMemoryOwn) |
Modifier and Type | Method and Description |
---|---|
void |
delete() |
protected void |
finalize() |
static long |
getCPtr(PackageManagerListener obj) |
void |
onPackageCancelled(java.lang.String id,
int version)
Listener method that is called when a package download has been cancelled.
|
void |
onPackageFailed(java.lang.String id,
int version,
PackageErrorType errorType)
Listener method that is called when updating a package failed (network error, etc).
|
void |
onPackageListFailed()
Listener method that is called when server package could not be downloaded or updated.
|
void |
onPackageListUpdated()
Listener method that is called when server package list has been successfully updated.
|
void |
onPackageStatusChanged(java.lang.String id,
int version,
PackageStatus status)
Listener method that is called when a package status has changed.
Information about the status of the package (current action, progress, etc) is explictly given with this event. |
void |
onPackageUpdated(java.lang.String id,
int version)
Listener method that is called when a package is successfully updated (downloaded or removed).
|
static PackageManagerListener |
swigCreatePolymorphicInstance(long cPtr,
boolean cMemoryOwn)
Creates a polymorphic instance of the given native object.
|
protected void |
swigDirectorDisconnect() |
java.lang.String |
swigGetClassName()
Returns the actual class name of this object.
|
java.lang.Object |
swigGetDirectorObject()
Returns the connected director object.
|
void |
swigReleaseOwnership() |
void |
swigTakeOwnership() |
public PackageManagerListener(long cPtr, boolean cMemoryOwn)
public PackageManagerListener()
public static long getCPtr(PackageManagerListener obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
protected void swigDirectorDisconnect()
public void swigReleaseOwnership()
public void swigTakeOwnership()
public static PackageManagerListener swigCreatePolymorphicInstance(long cPtr, boolean cMemoryOwn)
public void onPackageListUpdated()
public void onPackageListFailed()
public void onPackageStatusChanged(java.lang.String id, int version, PackageStatus status)
id
- The id of the package whose status has changedversion
- The version of the package whose status has changedstatus
- The current status of the packagepublic void onPackageCancelled(java.lang.String id, int version)
id
- The id of the package that has been cancelledversion
- The version of the package that has been cancelledpublic void onPackageUpdated(java.lang.String id, int version)
id
- The id of the package that has been updatedversion
- The version of the package that has been updatedpublic void onPackageFailed(java.lang.String id, int version, PackageErrorType errorType)
id
- The id of the package that failedversion
- The version of the package that failederrorType
- Reason or type of the failurepublic java.lang.String swigGetClassName()
public java.lang.Object swigGetDirectorObject()