import 'dart:ffi'; import 'classify_photo_platform_interface.dart'; class ClassifyPhoto { Future getPlatformVersion() { return ClassifyPhotoPlatform.instance.getPlatformVersion(); } Future>?> getPhoto() { return ClassifyPhotoPlatform.instance.getPhoto(); } // 新增的分离方法 // 获取截图 Future>?> getScreenshots() { return ClassifyPhotoPlatform.instance.getScreenshots(); } // 获取模糊照片 Future>?> getBlurryPhotos() { return ClassifyPhotoPlatform.instance.getBlurryPhotos(); } // 获取人物照片 Future>?> getPeoplePhotos() { return ClassifyPhotoPlatform.instance.getPeoplePhotos(); } // 获取相似照片 Future>?> getSimilarPhotos() { return ClassifyPhotoPlatform.instance.getSimilarPhotos(); } Future> getStorageInfo() { return ClassifyPhotoPlatform.instance.getStorageInfo(); } Future checkTrialEligibility(String appleId) { return ClassifyPhotoPlatform.instance.checkTrialEligibility(appleId); } Future> getPhotoExif(String filePath) async { try { return await ClassifyPhotoPlatform.instance.getPhotoExif(filePath); } catch (e) { print('获取照片 EXIF 信息失败: $e'); return {}; } } Future finishTransaction() { return ClassifyPhotoPlatform.instance.finishTransaction(); } Future calculatePhotosSize(List assetIds) { return ClassifyPhotoPlatform.instance.calculatePhotoSize(assetIds); } }