2014 snapchat source code
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

  1. //
  2. // SCCameraVolumeButtonHandler.h
  3. // Snapchat
  4. //
  5. // Created by Xiaomu Wu on 2/27/15.
  6. // Copyright (c) 2015 Snapchat, Inc. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class SCCameraVolumeButtonHandler;
  10. @protocol SCCameraVolumeButtonHandlerDelegate <NSObject>
  11. - (void)volumeButtonHandlerDidBeginPressingVolumeButton:(SCCameraVolumeButtonHandler *)handler;
  12. - (void)volumeButtonHandlerDidEndPressingVolumeButton:(SCCameraVolumeButtonHandler *)handler;
  13. @end
  14. @interface SCCameraVolumeButtonHandler : NSObject
  15. @property (nonatomic, weak) id<SCCameraVolumeButtonHandlerDelegate> delegate;
  16. - (void)startHandlingVolumeButtonEvents;
  17. - (void)stopHandlingVolumeButtonEvents;
  18. - (void)stopHandlingVolumeButtonEventsWhenPressingEnds;
  19. - (BOOL)isHandlingVolumeButtonEvents;
  20. - (BOOL)isPressingVolumeButton;
  21. @end