PhotoManagerPlugin class

The plugin class is the core class that call channel's methods.

Constructors

PhotoManagerPlugin()

Properties

hashCode int
The hash code for this object.
no setterinherited
onlyAddPermission Map<String, dynamic>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

androidColumns() Future<List<String>>
inherited
androidMoveAssetToPath(AssetEntity entity, AssetPathEntity target) Future<bool>
inherited
androidRemoveNoExistsAssets() Future<bool>
assetExistsWithId(String id) Future<bool>
Check whether the asset has been deleted.
cancelCacheRequests() Future<void>
clearFileCache() Future<void>
copyAssetToGallery(AssetEntity asset, AssetPathEntity pathEntity) Future<AssetEntity?>
deleteWithId(String id) Future<bool>
deleteWithIds(List<String> ids) Future<List<String>>
favoriteAsset(String id, bool favorite) Future<bool>
fetchEntityProperties(String id) Future<Map?>
fetchPathProperties(String id, RequestType type, PMFilter optionGroup) Future<Map?>
forceOldApi() Future<void>
getAssetCount({PMFilter? filterOption, RequestType type = RequestType.common}) Future<int>
getAssetCountFromPath(AssetPathEntity path) Future<int>
getAssetListPaged(String id, {required PMFilter optionGroup, int page = 0, int size = 15, RequestType type = RequestType.common}) Future<List<AssetEntity>>
Use pagination to get album content.
getAssetListRange(String id, {required RequestType type, required int start, required int end, required PMFilter optionGroup}) Future<List<AssetEntity>>
Asset in the specified range.
getAssetListWithRange({required int start, required int end, RequestType type = RequestType.common, PMFilter? filterOption}) Future<List<AssetEntity>>
getAssetPathList({bool hasAll = true, bool onlyAll = false, RequestType type = RequestType.common, PMFilter? filterOption, required PMPathFilter pathFilterOption}) Future<List<AssetPathEntity>>
getFullFile(String id, {required bool isOrigin, PMProgressHandler? progressHandler, int subtype = 0}) Future<String?>
getLatLngAsync(AssetEntity entity) Future<LatLng>
getMediaUrl(AssetEntity entity) Future<String?>
getMimeTypeAsync(AssetEntity entity) Future<String?>
getOriginBytes(String id, {PMProgressHandler? progressHandler}) Future<Uint8List?>
getSubPathEntities(AssetPathEntity pathEntity) Future<List<AssetPathEntity>>
getSystemVersion() Future<String>
getThumbnail({required String id, required ThumbnailOption option, PMProgressHandler? progressHandler}) Future<Uint8List?>
Get thumbnail of asset id.
getTitleAsync(AssetEntity entity, {int subtype = 0}) Future<String>
ignorePermissionCheck(bool ignore) Future<void>
iosCreateAlbum(String name, bool isRoot, AssetPathEntity? parent) Future<AssetPathEntity?>
inherited
iosCreateFolder(String name, bool isRoot, AssetPathEntity? parent) Future<AssetPathEntity?>
inherited
iosDeleteCollection(AssetPathEntity path) Future<bool>
iosRemoveInAlbum(List<AssetEntity> entities, AssetPathEntity path) Future<bool>
inherited
isLocallyAvailable(String id, {bool isOrigin = false}) Future<bool>
inherited
moveToTrash(List<AssetEntity> list) Future<List<String>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyChange({required bool start}) Future<bool>
Return true if the invoke succeed.
openSetting() Future<void>
presentLimited(RequestType type) Future<void>
releaseCache() Future<void>
requestCacheAssetsThumbnail(List<String> ids, ThumbnailOption option) Future<void>
requestPermissionExtend(PermissionRequestOption requestOption) Future<PermissionState>
saveImage(Uint8List data, {required String? title, String? desc, String? relativePath}) Future<AssetEntity?>
saveImageWithPath(String path, {required String title, String? desc, String? relativePath}) Future<AssetEntity?>
saveLivePhoto({required File imageFile, required File videoFile, required String? title, String? desc, String? relativePath}) Future<AssetEntity?>
saveVideo(File file, {required String? title, String? desc, String? relativePath}) Future<AssetEntity?>
setLog(bool isLog) Future<void>
toString() String
A string representation of this object.
inherited

Operators

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