DNImagePickerController.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // DNImagePickerController.h
  3. // ImagePicker
  4. //
  5. // Created by DingXiao on 15/2/10.
  6. // Copyright (c) 2015年 Dennis. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class ALAssetsLibrary;
  10. @class ALAssetsFilter;
  11. FOUNDATION_EXTERN NSString *kDNImagePickerStoredGroupKey;
  12. typedef NS_ENUM(NSUInteger, DNImagePickerFilterType) {
  13. DNImagePickerFilterTypeNone,
  14. DNImagePickerFilterTypePhotos,
  15. DNImagePickerFilterTypeVideos,
  16. };
  17. @class DNImagePickerController;
  18. @protocol DNImagePickerControllerDelegate <NSObject>
  19. @optional
  20. /**
  21. * imagePickerController‘s seleted photos
  22. *
  23. * @param imagePicker picker
  24. * @param images the seleted photos
  25. * @param fullImage if the value is yes, the seleted photos is full image
  26. */
  27. - (void)dnImagePickerController:(DNImagePickerController *)imagePicker
  28. sendImages:(NSArray *)images
  29. isFullImage:(BOOL)fullImage;
  30. - (void)dnImagePickerControllerDidCancel:(DNImagePickerController *)imagePicker;
  31. @end
  32. @interface DNImagePickerController : UINavigationController
  33. @property (nonatomic, assign) DNImagePickerFilterType filterType;
  34. @property (nonatomic, weak) id<DNImagePickerControllerDelegate> imagePickerDelegate;
  35. //@property (nonatomic, readonly) ALAssetsLibrary *assetsLibrary;
  36. @end