AndroidPackageInstaller class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
installApk({required String apkFilePath})
→ Future<int?>
-
Installs apk file using Android Package Manager.
Creates Package Installer session, then displays a dialog to confirm the installation.
After installation process is completed, the session is closed.
apkFilePath
- the path to the apk package file. Example: /sdcard/Download/app.apk
Returns session result code.