flutter_curiosity library

Classes

AndroidDeviceModel
AppInfoModel
AppsModel
Cameras
IOSDeviceModel
Scanner
原始扫描预览 可以再此基础上定制其他样式预览
ScannerBox
ScannerController
ScannerPage
基于原始扫描预览 使用简单
ScannerPainter
UTSModel
Version

Constants

curiosity → const String
'Curiosity'
curiosityChannel → const MethodChannel
MethodChannel(curiosity)

Properties

exitApp Future<void>
退出app Exit app
read-only
getAndroidDeviceInfo Future<AndroidDeviceModel>
get Android Device Info
read-only
getAppName Future<String>
app name
read-only
getGPSStatus Future<bool>
判断GPS是否开启,GPS或者AGPS开启一个就认为是开启的 Judge whether GPS is on. If GPS or AGPs is turned on, it is considered to be on
read-only
getInstalledApp Future<List<AppsModel>>
AppInfo
read-only
getIOSDeviceInfo Future<IOSDeviceModel>
get IOS Device Info
read-only
getPackageInfo Future<AppInfoModel>
get all info
read-only
getPackageName Future<String>
package name
read-only
getRootDirectory Future<String>
root directory
read-only
getVersionCode Future<int>
android versionCode ios version
read-only
getVersionName Future<String>
android versionName ios buildName
read-only
isAndroid bool
read-only
isFuchsia bool
read-only
isIOS bool
read-only
isLinux bool
read-only
isMacOS bool
read-only
isWindows bool
read-only
jumpAppSetting Future<bool>
跳转到App权限设置页面 Jump to app permission setting page
read-only
jumpGPSSetting Future<bool>
跳转到GPS定位权限设置页面 Jump to the GPS location permission setting page
read-only
openSystemGallery Future<String>
打开系统相册 返回文件路径 ios info.plist add NSPhotoLibraryUsageDescription 是否允许Curiosity访问你的相册? ios path 包含 file:///
read-only

Functions

getFilePathSize(String path) Future<String>
获取文件夹或文件大小 Gets the folder or file size
goToMarket<T>({String packageName, String marketPackageName, String appID}) Future<void>
去应用市场 android 安装多个应用商店时会弹窗选择,ios app store When you go to the app market and install multiple app stores, you will pop up to select IOS app store android => packageName ios => app id The android platform "marketPackageName" cannot be null
installApp(String apkPath) Future<String>
安装apk 仅支持android Installing APK only supports Android success 安装成功 cancel 取消安装 not permissions 没有打开安装权限
isInstallApp(String packageName) Future<bool>
是否安装某个app 仅支持android is install an app that only supports Android
jumpSystemSetting({SettingType settingType}) Future<bool>
跳转到android 系统设置 Jump to Android system settings
openSystemCamera({String savePath}) Future<String>
打开系统相机 返回文件路径 Android AndroidManifest.xml 添加以下内容 ios info.plist add NSCameraUsageDescription 是否允许APP使用你的相机? NSPhotoLibraryUsageDescription 是否允许APP访问你的相册? ios path 包含 file:///
saveFileToGallery(String file) Future<String>
Save the PNG,JPG,JPEG image or video located at file to the local device media gallery.
saveImageToGallery(Uint8List imageBytes, {int quality: 100, String name}) Future<String>
save image to Gallery imageBytes can't null
systemCallPhone<T>(String phoneNumber, {bool directDial: false}) Future<void>
拨打电话 directDial true 直接拨打电话 false 跳转到拨号页面并输入手机号 directDial 为 true 需要 自行申请动态申请权限
systemShare({String title: 'Share', String content, List<String> imagesPath, ShareType shareType}) Future<String>
系统分享

Enums

CameraLensFacing
ResolutionPreset
SettingType
Android 系统设置
ShareType