Open Shtibel opened 5 years ago
When I try to add options to getLibrary() I get this error:
Uncaught TypeError: success is not a function
Here is my code:
let libraryItemOptions = { includeAlbumData: true, quality: 0.2, thumbnailWidth: 300, thumbnailHeight: 300, itemsInChunk: 100, chunkTimeSec: 0.5, useOriginalFileNames: false, includeVideos: false, maxItems: 200 }; this.photoLibrary.getLibrary(libraryItemOptions).subscribe({ next: library => { library.forEach(function(libraryItem) { console.log(libraryItem.id); // ID of the photo console.log(libraryItem.photoURL); // Cross-platform access to photo console.log(libraryItem.thumbnailURL);// Cross-platform access to thumbnail console.log(libraryItem.fileName); console.log(libraryItem.width); console.log(libraryItem.height); console.log(libraryItem.creationDate); console.log(libraryItem.latitude); console.log(libraryItem.longitude); console.log(libraryItem.albumIds); // array of ids of appropriate AlbumItem, only of includeAlbumsData was used }); }, error: err => { console.log('could not get photos'); }, complete: () => { console.log('done getting photos'); } });
Issue similar to #158
When I try to add options to getLibrary() I get this error:
Here is my code: