You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
824 B
31 lines
824 B
//
|
|
// 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
|