AndroidAppUtil class

Constructors

AndroidAppUtil()
factory

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

checkOrientation() Future<ScreenOrientationTypes?>
exportApk({required String packageName, required String savedPath}) Future<void>
Export one APK by package name
getApkSize({required String packageName}) Future<int?>
AppIcon one APK by packageName
getAppExternalPath() Future<String>
/storage/emulated/0
getAppIcon({required String packageName}) Future<Uint8List?>
AppIcon one APK by packageName
getBatteryLevel() Future<int>
getDeviceId() Future<String>
Settings.Secure.ANDROID_ID
getDeviceInfo() Future<Map<String, dynamic>>
getExternalCachePath() Future<String>
storage/emulated/0/Android/data/[your.package.name]/cache
getExternalFilesDir() Future<String>
storage/emulated/0/Android/data/[com.example.myapp]/files
getFilesDir() Future<String>
context.filesDir ⇒ /data/data/your.package.name/files/
getInstalledAppsList() Future<List<InstalledApp>>
Installed apps list (with apkPath)
getOrientation() Future<ScreenOrientationTypes?>
getPlatformVersion() Future<String>
getSdkInt() Future<int>
hideFullScreen() Future<void>
installApk({required String path}) Future<void>
isDarkModeEnabled() Future<bool>
isFullScreen() Future<bool>
isInternetConnected() Future<bool>
launch(String source) Future<void>
auto choose file and url
launchFile(String source) Future<void>
launchUrl(String url) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openPdfWithIntent({required String path}) Future<void>
openUrl({required String url}) Future<void>
openVideoWithIntent({required String path}) Future<void>
requestOrientation({required ScreenOrientationTypes type}) Future<void>
setWallpaper({required String path}) Future<void>
setWallpaper (with imagePath)
showFullScreen() Future<void>
showToast(String message) Future<void>
toggleKeepScreenOn({required bool isKeep}) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

app AndroidAppUtil
final