PhotoManagerPlugin class
The plugin class is the core class that call channel's methods.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onlyAddPermission
→ Map<
String, dynamic> -
finalinherited
- 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> -
inherited
-
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> -
inherited
-
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> > - Obtain assets with the pagination.
-
getAssetListRange(
String id, {required RequestType type, required int start, required int end, required PMFilter optionGroup}) → Future< List< AssetEntity> > - Obtain assets 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> > -
getDurationWithOptions(
String id, {int? subtype}) → Future< int> -
getFullFile(
String id, {required bool isOrigin, PMProgressHandler? progressHandler, int subtype = 0, PMDarwinAVFileType? darwinFileType}) → Future< String?> -
getLatLngAsync(
AssetEntity entity) → Future< LatLng> -
getMediaUrl(
AssetEntity entity, {PMProgressHandler? progressHandler}) → Future< String?> -
getMimeTypeAsync(
AssetEntity entity) → Future< String?> -
getOriginBytes(
String id, {PMProgressHandler? progressHandler, PMDarwinAVFileType? darwinFileType}) → Future< Uint8List?> -
getPermissionState(
PermissionRequestOption requestOption) → Future< PermissionState> -
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, {bool isOrigin = true, int subtype = 0, PMDarwinAVFileType? darwinFileType}) → Future< String> -
getVerboseFilePath(
) → 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> -
inherited
-
iosRemoveInAlbum(
List< AssetEntity> entities, AssetPathEntity path) → Future<bool> -
inherited
-
isLocallyAvailable(
String id, {bool isOrigin = false, int subtype = 0, PMDarwinAVFileType? darwinFileType}) → Future< bool> -
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. -
ohosColumns(
) → Future< List< String> > -
inherited
-
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 filename, String? title, String? desc, String? relativePath, int? orientation}) → Future< AssetEntity> -
saveImageWithPath(
String inputFilePath, {String? title, String? desc, String? relativePath, int? orientation}) → Future< AssetEntity> -
saveLivePhoto(
{required File imageFile, required File videoFile, required String? title, String? desc, String? relativePath}) → Future< AssetEntity> -
inherited
-
saveVideo(
File inputFile, {required String? title, String? desc, String? relativePath, int? orientation}) → Future< AssetEntity> -
setLog(
bool isLog) → Future< void> -
setVerbose(
bool isVerbose, String logPath) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited