2
0

DNPhotoBrowser.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // DNPhotoBrowserViewController.h
  3. // ImagePicker
  4. //
  5. // Created by DingXiao on 15/2/28.
  6. // Copyright (c) 2015年 Dennis. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class DNImageFlowViewController;
  10. @class DNPhotoBrowser;
  11. @class DNAsset;
  12. @protocol DNPhotoBrowserDelegate <NSObject>
  13. @required
  14. - (void)sendImagesFromPhotobrowser:(DNPhotoBrowser *)photoBrowse currentAsset:(DNAsset *)asset;
  15. - (NSUInteger)seletedPhotosNumberInPhotoBrowser:(DNPhotoBrowser *)photoBrowser;
  16. - (BOOL)photoBrowser:(DNPhotoBrowser *)photoBrowser currentPhotoAssetIsSeleted:(DNAsset *)asset;
  17. - (BOOL)photoBrowser:(DNPhotoBrowser *)photoBrowser seletedAsset:(DNAsset *)asset;
  18. - (void)photoBrowser:(DNPhotoBrowser *)photoBrowser deseletedAsset:(DNAsset *)asset;
  19. - (void)photoBrowser:(DNPhotoBrowser *)photoBrowser seleteFullImage:(BOOL)fullImage;
  20. @end
  21. @interface DNPhotoBrowser : UIViewController
  22. @property (nonatomic, weak) id<DNPhotoBrowserDelegate> delegate;
  23. - (instancetype)initWithPhotos:(NSArray *)photosArray
  24. currentIndex:(NSInteger)index
  25. fullImage:(BOOL)isFullImage;
  26. - (void)hideControls;
  27. - (void)toggleControls;
  28. @end