cordova-plugin-photo-library
cordova-plugin-photo-library copied to clipboard
Is there any way to limit the number of fetch items?
I am using itemsInChunk and subscribe and can show photos before fetching all photos but if photos are thousands, it kills the app eventually. So I am looking any way to limit the total number of photos without the full fetch. If pagination is possible, it will be the best but just limiting will be very helpful for now.
Any answer or guidance will be appreciated.
this.photo.getLibrary({
thumbnailWidth: this.thumbnailSize,
thumbnailHeight: this.thumbnailSize,
itemsInChunk: this.libMax,
quality: 0.6,
chunkTimeSec: 0.5,
useOriginalFileNames: false
}).subscribe
hi, I have the same problem here. Do you have a solution?
i will add android in a couple months when i need it. but for iOS, you can you use:
https://github.com/arzynik/cordova-plugin-photo-library/tree/feature/max-items
not well tested, but it works for me.