mirror of
https://github.com/danog/Telegram.git
synced 2024-12-12 17:37:33 +01:00
15 lines
627 B
Objective-C
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
|