AppUtils class

Class that manages all app_utils operations

Constructors

AppUtils()

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

Operators

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

Static Methods

canLaunchApp({String androidPackageName = "", String iOSUrlScheme = ""}) Future<bool?>
method that checks is provided appication is or not,
androidPackageName applicationId for android,
iOSUrlScheme urlScheme for iOS,
return bool boolean status
getCurrentAppInfo() Future<BundleInfo>
returns current app details BundleInfo
getCurrentDeviceInfo() Future<DeviceInfo>
returns current device details DeviceInfo
getInstalledApps() Future<List<BundleInfo>>
method that returns all device installed applications,
it List of AppDetail objects that contains all application information,
Note -: This method is supported only on Android platform
launchApp({String androidPackage = "", String iosUrlScheme = "", bool? launchStore = false, String playStoreUrl = "", String appStoreUrl = "", Map<String, dynamic> params = const {}}) Future<void>
method that launches open another application by using platform specific api's
androidPackage android appId, to get appId from playstore check playstore query param ?id=com.xyz
iosUrlScheme iOS url scheme, to get url scheme check appilication docs.for example for whatsapp url scheme is whatsapp://
launchStore passed true then, it will launch application store from provided link if not installed on device
playStoreUrl appstore url for andorid
appStoreUrl appstore url for iOS
openDeviceSettings(AppSettings platformSettings) Future<void>
Opens device settings. It takes platform specific settings object
AndroidSettings for android, IOSSettings for iOS
readLaunchedData() Future<Map<String, dynamic>>
read sender application data