NativeTools class
Constructors
- NativeTools()
-
factory
Properties
-
appInfo
→ Future<
AppInfoModel?> -
no setter
-
appPath
→ Future<
AppPathModel?> -
no setter
-
deviceInfo
→ Future<
DeviceInfoModel?> -
no setter
-
gpsStatus
→ Future<
bool> -
判断GPS是否开启,GPS或者AGPS开启一个就认为是开启的
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
installedApp
→ Future<
List< AppsModel> > -
get Android installed apps
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
checkCanInstallApp(
[bool openSetting = true]) → Future< bool> - 检测是否允许安装apk only supports Android
-
exitApp(
) → Future< void> - Exit app
-
getAppInfo(
) → Future< AppInfoModel?> - get Android/IOS/MacOS info
-
getAppPath(
) → Future< AppPathModel?> - get Android/IOS/MacOS path
-
getDeviceInfo(
) → Future< DeviceInfoModel?> - get Android/IOS/MacOS Device Info
-
hasInstallAppWithAndroid(
String packageName) → Future< bool> - 是否安装某个app Android packageName 对应包名
-
installApp(
String apkPath, {bool openSetting = true}) → Future< bool?> - 安装apk 仅支持android Installing APK only supports Android
-
keyboardListener(
KeyboardStatus keyboardStatus) → void - android ios 键盘状态监听
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onResultListener(
{EventHandlerActivityResult? activityResult, EventHandlerRequestPermissionsResult? requestPermissionsResult}) → Future< void> - android onActivityResult 监听 onRequestPermissionsResult 监听
-
openAndroidAppMarket(
String packageName, {String? marketPackageName}) → Future< bool> - android packageName,安装多个应用商店时会弹窗选择, marketPackageName 指定打开应用市场的包名
-
openSystemSetting(
{AndroidSettingPath? path, MacOSSettingPath? macPath}) → Future< bool> - 跳转到系统设置页面 settingType 仅对android 有效
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited