Comments (2)
Good question! I think this feature will be useful. I'll research on it. :)
from alassetslibrary-customphotoalbum.
Hi @rgksugan , u can add observer with notification name: ALAssetsLibraryChangedNotification
, and the userInfo
offers
- ALAssetLibraryUpdatedAssetsKey
- ALAssetLibraryInsertedAssetGroupsKey
- ALAssetLibraryUpdatedAssetGroupsKey
- ALAssetLibraryDeletedAssetGroupsKey
You can get the updated items & groups with NSURL
items in NSSet
instance.
DOC:
This notification will be sent when the contents of the ALAssetsLibrary have changed from under the app that is using the data.
The API user should retain the library object to receive this notification.
The userInfo may include the keys listed below, which identify specific ALAssets or ALAssetGroups that have become invalid and should be discarded. The values are NSSets of NSURLs which match the ALAssetPropertyURL and ALAssetsGroupPropertyURL properties.
If the userInfo is nil, all ALAssets and ALAssetGroups should be considered invalid and discarded.
Modified ALAssets will be identified by the ALAssetLibraryUpdatedAssetsKey, but inserted or deleted ALAssets are identified by invalidating the containing ALAssetGroups.
from alassetslibrary-customphotoalbum.
Related Issues (20)
- HI~Sir, I have a problem HOT 4
- ios 8.3 recreate album HOT 7
- I have gone through its very good wrapper for ALAsset library is there a way to load video like loading images from albumb HOT 1
- *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ALAssetsLibrary saveImage:toAlbum:completion:failure:]: unrecognized selector sent to instance HOT 4
- Can't create album with same name as a deleted one HOT 4
- Add Photos.framework as one more Dependancy for iOS 8 HOT 3
- Saving bulk images fails! HOT 2
- Multithreading violation in iOS 8.3+ HOT 8
- Failure Block isn't working properly. HOT 1
- When custom album was deleted by somebody through system PhotoApp, execute -saveImage:toAlbum:completion:failure:will throw error HOT 5
- ios8.4 sometimes fail when addAssetURL to album HOT 15
- Option to check if image exists in the newly created folder in gallery? HOT 4
- Image getting saved to Camera roll as well. HOT 1
- Method to remove image from Camera Roll. HOT 1
- iOS9 cannot create new album group HOT 6
- iOS9 saving bug. HOT 11
- Not saving images in iOS 10 HOT 4
- Thanks! HOT 1
- ALAssetsGroup failed to add asset: null on iOS11 HOT 10
- not working iOS 11.3 , and 11.4 ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alassetslibrary-customphotoalbum.