PhotoManager class
use the class method to help user load asset list and asset info.
这个类是整个库的核心类
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- editor ↔ Editor
-
getter/setter pair
- notifyingOfChange ↔ bool
-
Whether to monitor the change of photo album.
getter/setter pair
-
notifyStream
→ Stream<
bool> -
See
_NotifyManager.notifyStream
no setter
Static Methods
-
addChangeCallback(
ValueChanged< MethodCall> callback) → void -
see
_NotifyManager
-
clearFileCache(
) → Future< void> - Clear all file cache.
-
fetchPathProperties(
{required AssetPathEntity entity, required FilterOptionGroup filterOptionGroup}) → Future< AssetPathEntity?> - AssetPathEntity.refreshPathProperties
-
forceOldApi(
) → Future< void> -
Only valid for Android 29. The API of API 28 must be used with the property of
requestLegacyExternalStorage
. -
getAssetPathList(
{bool hasAll = true, bool onlyAll = false, RequestType type = RequestType.common, FilterOptionGroup? filterOption}) → Future< List< AssetPathEntity> > - get gallery list
-
getImageAsset(
) → Future< List< AssetPathEntity> > - Use getAssetPathList replaced.
-
getVideoAsset(
) → Future< List< AssetPathEntity> > - Use getAssetPathList replaced.
-
openSetting(
) → void - get video asset open setting page
-
presentLimited(
) → Future< void> - Prompts the limited assets selection modal on iOS.
-
refreshAssetProperties(
String id) → Future< AssetEntity?> - Refresh the property of asset.
-
releaseCache(
) → Future - Release all native(ios/android) caches, normally no calls are required.
-
removeChangeCallback(
ValueChanged< MethodCall> callback) → void -
see
_NotifyManager
-
requestPermission(
) → Future< bool> - in android WRITE_EXTERNAL_STORAGE READ_EXTERNAL_STORAGE
-
requestPermissionExtend(
{PermisstionRequestOption requestOption = const PermisstionRequestOption()}) → Future< PermissionState> - Android: WRITE_EXTERNAL_STORAGE, READ_EXTERNAL_STORAGE, MEDIA_LOCATION
-
setCacheAtOriginBytes(
bool cache) → Future< bool> - When set to true, origin bytes in Android Q will be cached as a file. When use again, the file will be read.
-
setIgnorePermissionCheck(
bool ignore) → Future< void> - Ignore permission checks at runtime, you can use third-party permission plugins to request permission. Default is false.
-
setLog(
bool isLog) → Future< void> -
startChangeNotify(
) → void -
see
_NotifyManager
-
stopChangeNotify(
) → void -
see
_NotifyManager
-
systemVersion(
) → Future< String> - Get system version