installApk method

  1. @override
Future<bool> installApk({
  1. required String filePath,
  2. bool silently = false,
})
override

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.

Implementation

@override
Future<bool> installApk({
  required String filePath,
  bool silently = false,
}) async {
  return await methodChannel.invokeMethod(
    "installApk",
    <String, dynamic>{
      "filePath": filePath,
      "silently": silently,
    },
  );
}