cordova-plugin-photo-library icon indicating copy to clipboard operation
cordova-plugin-photo-library copied to clipboard

Is there any way to limit the number of fetch items?

Open guerrylim opened this issue 8 years ago • 2 comments

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

guerrylim avatar Sep 15 '17 19:09 guerrylim

hi, I have the same problem here. Do you have a solution?

victoria168 avatar Nov 01 '17 08:11 victoria168

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.

spacedevin avatar Apr 12 '18 20:04 spacedevin