1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-12 17:37:33 +01:00
Telegram/thirdparty/PGPhotoEditor/PGCameraVolumeButtonHandler.h
2015-10-01 19:19:52 +03:00

15 lines
627 B
Objective-C

#import <Foundation/Foundation.h>
@interface PGCameraVolumeButtonHandler : NSObject
@property (nonatomic, assign) bool enabled;
@property (nonatomic, assign) bool ignoring;
- (instancetype)initWithUpButtonPressedBlock:(void (^)(void))upButtonPressedBlock upButtonReleasedBlock:(void (^)(void))upButtonReleasedBlock downButtonPressedBlock:(void (^)(void))downButtonPressedBlock downButtonReleasedBlock:(void (^)(void))downButtonReleasedBlock;
- (void)enableIn:(NSTimeInterval)timeInterval;
- (void)disableFor:(NSTimeInterval)timeInterval;
- (void)ignoreEventsFor:(NSTimeInterval)timeInterval andDisable:(bool)disable;
@end