VLCSiriRemoteGestureRecognizer.h 1.0 KB

123456789101112131415161718192021222324252627282930
  1. /*****************************************************************************
  2. * VLC for iOS
  3. *****************************************************************************
  4. * Copyright (c) 2015 VideoLAN. All rights reserved.
  5. * $Id$
  6. *
  7. * Authors: Tobias Conradi <videolan # tobias-conradi.de>
  8. *
  9. * Refer to the COPYING file of the official project for license.
  10. *****************************************************************************/
  11. #import <UIKit/UIKit.h>
  12. typedef NS_ENUM(NSInteger, VLCSiriRemoteTouchLocation){
  13. VLCSiriRemoteTouchLocationUnknown,
  14. VLCSiriRemoteTouchLocationLeft,
  15. VLCSiriRemoteTouchLocationRight,
  16. VLCSiriRemoteTouchLocationUp,
  17. VLCSiriRemoteTouchLocationDown
  18. };
  19. @interface VLCSiriRemoteGestureRecognizer : UIGestureRecognizer
  20. @property (nonatomic) NSTimeInterval minLongPressDuration; // default = 0.5
  21. @property (nonatomic, readonly, getter=isLongPress) BOOL longPress;
  22. @property (nonatomic, readonly, getter=isClick) BOOL click;
  23. @property (nonatomic, readonly) VLCSiriRemoteTouchLocation touchLocation;
  24. @end