VLCSiriRemoteGestureRecognizer.h 1.04 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/*****************************************************************************
 * VLC for iOS
 *****************************************************************************
 * Copyright (c) 2015 VideoLAN. All rights reserved.
 * $Id$
 *
 * Authors: Tobias Conradi <videolan # tobias-conradi.de>
 *
 * Refer to the COPYING file of the official project for license.
 *****************************************************************************/

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, VLCSiriRemoteTouchLocation){
    VLCSiriRemoteTouchLocationUnknown,
    VLCSiriRemoteTouchLocationLeft,
    VLCSiriRemoteTouchLocationRight,
18 19
    VLCSiriRemoteTouchLocationUp,
    VLCSiriRemoteTouchLocationDown
20 21 22 23 24 25 26 27 28 29
};

@interface VLCSiriRemoteGestureRecognizer : UIGestureRecognizer
@property (nonatomic) NSTimeInterval minLongPressDuration; // default = 0.5
@property (nonatomic, readonly, getter=isLongPress) BOOL longPress;
@property (nonatomic, readonly, getter=isClick) BOOL click;
@property (nonatomic, readonly) VLCSiriRemoteTouchLocation touchLocation;

@end