1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-04 10:27:46 +01:00
Telegram/legacy/TelegraphKit/TGImagePickerController.h
2015-10-01 19:19:52 +03:00

42 lines
977 B
Objective-C

/*
* This is the source code of Telegram for iOS v. 1.1
* It is licensed under GNU GPL v. 2 or later.
* You should have received a copy of the license in this archive (see LICENSE).
*
* Copyright Peter Iakovlev, 2013.
*/
#import "TGViewController.h"
#import "ActionStage.h"
#import <AssetsLibrary/AssetsLibrary.h>
#ifdef __cplusplus
extern "C" {
#endif
void dispatchOnAssetsProcessingQueue(dispatch_block_t block);
void sharedAssetsLibraryRetain();
void sharedAssetsLibraryRelease();
#ifdef __cplusplus
}
#endif
@protocol TGImagePickerControllerDelegate;
@interface TGImagePickerController : NSObject
+ (id)sharedAssetsLibrary;
+ (id)preloadLibrary;
+ (void)loadAssetWithUrl:(NSURL *)url completion:(void (^)(ALAsset *asset))completion;
+ (void)storeImageAsset:(NSData *)data;
@end
@protocol TGImagePickerControllerDelegate <NSObject>
- (void)imagePickerController:(TGImagePickerController *)imagePicker didFinishPickingWithAssets:(NSArray *)assets;
@end