FlutterAndroidPackageManager 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
-
clear(String packageName, {String? user, bool debug = false})
→ Future<void>
-
Clear the data of the package with the given
packageName.
-
defaultState(String packageName, {String? user, bool debug = false})
→ Future<void>
-
-
disable(String packageName, {String? user, bool debug = false})
→ Future<void>
-
-
disableUntilUsed(String packageName, {String? user, bool debug = false})
→ Future<void>
-
-
disableUser(String packageName, {String? user, bool debug = false})
→ Future<void>
-
-
enable(String packageName, {String? user, bool debug = false})
→ Future<void>
-
-
grant(String packageName, String permission, {String? user, bool debug = false})
→ Future<void>
-
grant the specified
permission to the package with the given packageName.
-
hide(String packageName, {String? user, bool debug = false})
→ Future<void>
-
-
isInstalled(String packageName, {bool debug = false})
→ Future<bool>
-
Check if the package with the given
packageName is installed.
-
listPackages({ListPackageFilter filter = const ListPackageFilter(), ListPackageDisplayOptions displayOptions = const ListPackageDisplayOptions(), String? nameFilter, bool debug = false})
→ Future<List<Package>>
-
Get the list of packages installed on the device.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
path(String packageName, {String? user, bool debug = false})
→ Future<List<String>>
-
Get the path of the package with the given
packageName.
-
resetPermissions(String packageName, {String? user, bool debug = false})
→ Future<void>
-
reset all permissions for the package with the given
packageName.
-
revoke(String packageName, String permission, {String? user, bool debug = false})
→ Future<void>
-
revoke the specified
permission from the package with the given packageName.
-
suspend(String packageName, {String? user, bool debug = false})
→ Future<void>
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
unhide(String packageName, {String? user, bool debug = false})
→ Future<void>
-
-
unsuspend(String packageName, {String? user, bool debug = false})
→ Future<void>
-