1
0
This repository has been archived on 2025-03-31. You can view files and clone it, but cannot push or open issues or pull requests.
Source-SnapChatCamera/VolumeButton/SCCameraVolumeButtonHandler.h
2018-08-08 02:50:48 +03:00

32 lines
824 B
Objective-C

//
// SCCameraVolumeButtonHandler.h
// Snapchat
//
// Created by Xiaomu Wu on 2/27/15.
// Copyright (c) 2015 Snapchat, Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
@class SCCameraVolumeButtonHandler;
@protocol SCCameraVolumeButtonHandlerDelegate <NSObject>
- (void)volumeButtonHandlerDidBeginPressingVolumeButton:(SCCameraVolumeButtonHandler *)handler;
- (void)volumeButtonHandlerDidEndPressingVolumeButton:(SCCameraVolumeButtonHandler *)handler;
@end
@interface SCCameraVolumeButtonHandler : NSObject
@property (nonatomic, weak) id<SCCameraVolumeButtonHandlerDelegate> delegate;
- (void)startHandlingVolumeButtonEvents;
- (void)stopHandlingVolumeButtonEvents;
- (void)stopHandlingVolumeButtonEventsWhenPressingEnds;
- (BOOL)isHandlingVolumeButtonEvents;
- (BOOL)isPressingVolumeButton;
@end