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,
returnbool
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 ofAppDetail
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
Constants
- CAN_LAUNCH_APP → const String
- GET_APP_INFO → const String
- GET_DEVICE_INFO → const String
- GET_INSTALLED_APPS → const String
- LAUNCH_APP → const String
- OPEN_DEVICE_SETTINGS → const String
- READ_LAUNCHED_DATA → const String