AutomaticAlbum class
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
-
automaticAlbum(
{int number = 5}) → Future< String> - 本地自动备份,备份间隔时间number建议是超过5秒钟(备份默认采用5秒更新) 成功:开启number秒备份成功 失败:1.请提供大于0的number参数间隔时间 2.报错信息
-
clearCache(
) → Future< String> - 清除本地DB的相册数据缓存(本函数谨慎使用) 此操作相当于删除表结构,会自动停住当前正在备份的automaticAlbum函数,但不会立即停,等本次备份执行完才会停。 成功:清除成功 失败:报错信息
-
closeAutomaticAlbum(
) → Future< String> - 关闭正在进行的本地自动备份 成功:关闭成功
-
getLastPhotoUpdateTime(
) → Future< String> - 获取最后一次更新本地DB相册时间 成功:字符串类型 时间 失败:报错信息
-
getPhoto(
String assetsId) → Future< String> - 传入相册的资产ID返回图片或者视频的base64 成功: base64值 失败:请传入正确并存在AssetEntity类型id
-
getPhotoDataAll(
) → Future< List< AssetEntity> > - 默认获取本地自动备份的所有数据, 目前不提供多条查一次,当您的相册照片过千,可能会消耗掉您1分钟左右时间才会返回值。 成功:List
-
getThumbnailPhoto(
String assetsId) → Future< String> - 传入相册的资产ID返回缩略图或缩略视频图的base64 成功: base64值 失败:请传入正确并存在AssetEntity类型id
-
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
- automaticState ↔ bool
-
用于控制自动备份的开关,true为开,false为关
getter/setter pair