PHPhotoLibrary+RITLPhotoStore.h 777 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // PHPhotoLibrary+RITLPhotoStore.h
  3. // RITLPhotoDemo
  4. //
  5. // Created by YueWen on 2018/3/7.
  6. // Copyright © 2018年 YueWen. All rights reserved.
  7. //
  8. #import <Photos/Photos.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. ///
  11. @interface PHPhotoLibrary (RITLPhotoStore)
  12. /// 获取photos提供的所有的智能分类相册组
  13. - (void)fetchAlbumRegularGroups:(void(^)(NSArray <PHAssetCollection *> *))complete;
  14. /// 获取的将'胶卷相册'放在第一位
  15. - (void)fetchAlbumRegularGroupsByUserLibrary:(void(^)(NSArray <PHAssetCollection *> *))complete;
  16. /// 权限检测
  17. + (void)authorizationStatusAllow:(void(^)(void))allowHander denied:(void(^)(void))deniedHander;
  18. /// 权限通过进行的handler
  19. + (void)handlerWithAuthorizationAllow:(void(^)(void))hander;
  20. @end
  21. NS_ASSUME_NONNULL_END