mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00: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
|