MethodChannelFlutterAppInstaller class

An implementation of FlutterAppInstallerPlatform that uses method channels.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
hasShellRootPermission Future<bool>
Check if the application has shell root permission, return a bool.
no setteroverride
isDeviceRooted Future<bool>
Check if the device is rooted, return a bool.
no setteroverride
isSystemApplication Future<bool>
Check if the application is system application, return a bool.
no setteroverride
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
platformVersion Future<String?>
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
versionCode Future<int?>
Retrieve Android Version Code
no setteroverride
versionName Future<String?>
Retrieve Android Version Name
no setteroverride

Methods

installApk({required String filePath, bool silently = false}) Future<bool>
Install the apk in the filePath. If you want to install the apk silently, the device need to be system application or has root permission on your emulator. /// After the installation is finished will return a bool.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited