public class PackageInstallObserver extends Object
Constructor and Description |
---|
PackageInstallObserver() |
Modifier and Type | Method and Description |
---|---|
IPackageInstallObserver2 |
getBinder() |
void |
onPackageInstalled(String basePackageName,
int returnCode,
String msg,
Bundle extras)
This method will be called to report the result of the package
installation attempt.
|
void |
onUserActionRequired(Intent intent) |
public IPackageInstallObserver2 getBinder()
public void onUserActionRequired(Intent intent)
public void onPackageInstalled(String basePackageName, int returnCode, String msg, Bundle extras)
basePackageName
- Name of the package whose installation was
attemptedextras
- If non-null, this Bundle contains extras providing
additional information about an install failure. See
PackageManager
for documentation
about which extras apply to various failures; in particular
the strings named EXTRA_FAILURE_*.returnCode
- The numeric success or failure code indicating the
basic outcome