LAEvent.h 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. #import "LAActivatorVersion.h"
  2. // Events represent an assignable gesture that has or could occurred
  3. @interface LAEvent : NSObject<NSCoding> LA_PRIVATE_IVARS(LAEvent)
  4. + (id)eventWithName:(NSString *)name;
  5. + (id)eventWithName:(NSString *)name mode:(NSString *)mode;
  6. - (id)initWithName:(NSString *)name;
  7. - (id)initWithName:(NSString *)name mode:(NSString *)mode;
  8. @property (nonatomic, readonly) NSString *name;
  9. @property (nonatomic, readonly) NSString *mode;
  10. @property (nonatomic, getter=isHandled) BOOL handled;
  11. @property (nonatomic, copy) NSDictionary *userInfo;
  12. @end
  13. extern NSString * const LAEventNameMenuPressSingle;
  14. extern NSString * const LAEventNameMenuPressDouble;
  15. extern NSString * const LAEventNameMenuPressTriple;
  16. extern NSString * const LAEventNameMenuHoldShort;
  17. extern NSString * const LAEventNameMenuHoldLong;
  18. extern NSString * const LAEventNameLockHoldShort;
  19. extern NSString * const LAEventNameLockHoldLong;
  20. extern NSString * const LAEventNameLockPressDouble;
  21. extern NSString * const LAEventNameLockPressWithMenu;
  22. extern NSString * const LAEventNameSpringBoardPinch;
  23. extern NSString * const LAEventNameSpringBoardSpread;
  24. extern NSString * const LAEventNameStatusBarSwipeRight;
  25. extern NSString * const LAEventNameStatusBarSwipeLeft;
  26. extern NSString * const LAEventNameStatusBarTapDouble;
  27. extern NSString * const LAEventNameStatusBarTapDoubleLeft;
  28. extern NSString * const LAEventNameStatusBarTapDoubleRight;
  29. extern NSString * const LAEventNameStatusBarTapSingle;
  30. extern NSString * const LAEventNameStatusBarTapSingleLeft;
  31. extern NSString * const LAEventNameStatusBarTapSingleRight;
  32. extern NSString * const LAEventNameStatusBarHold;
  33. extern NSString * const LAEventNameStatusBarHoldLeft;
  34. extern NSString * const LAEventNameStatusBarHoldRight;
  35. extern NSString * const LAEventNameVolumeDownUp;
  36. extern NSString * const LAEventNameVolumeUpDown;
  37. extern NSString * const LAEventNameVolumeDisplayTap;
  38. extern NSString * const LAEventNameVolumeToggleMuteTwice;
  39. extern NSString * const LAEventNameVolumeDownHoldShort;
  40. extern NSString * const LAEventNameVolumeUpHoldShort;
  41. extern NSString * const LAEventNameVolumeDownPress;
  42. extern NSString * const LAEventNameVolumeUpPress;
  43. extern NSString * const LAEventNameVolumeBothPress;
  44. extern NSString * const LAEventNameSlideInFromBottom;
  45. extern NSString * const LAEventNameSlideInFromBottomLeft;
  46. extern NSString * const LAEventNameSlideInFromBottomRight;
  47. extern NSString * const LAEventNameSlideInFromLeft;
  48. extern NSString * const LAEventNameSlideInFromRight;
  49. extern NSString * const LAEventNameStatusBarSwipeDown; // Now a slide gesture in iOS5.0+; extern and name kept for backwards compatibility
  50. #define LAEventNameSlideInFromTop LAEventNameStatusBarSwipeDown
  51. extern NSString * const LAEventNameSlideInFromTopLeft;
  52. extern NSString * const LAEventNameSlideInFromTopRight;
  53. extern NSString * const LAEventNameTwoFingerSlideInFromBottom;
  54. extern NSString * const LAEventNameTwoFingerSlideInFromBottomLeft;
  55. extern NSString * const LAEventNameTwoFingerSlideInFromBottomRight;
  56. extern NSString * const LAEventNameTwoFingerSlideInFromLeft;
  57. extern NSString * const LAEventNameTwoFingerSlideInFromRight;
  58. extern NSString * const LAEventNameTwoFingerSlideInFromTop;
  59. extern NSString * const LAEventNameTwoFingerSlideInFromTopLeft;
  60. extern NSString * const LAEventNameTwoFingerSlideInFromTopRight;
  61. extern NSString * const LAEventNameDragOffBottom;
  62. extern NSString * const LAEventNameDragOffLeft;
  63. extern NSString * const LAEventNameDragOffRight;
  64. extern NSString * const LAEventNameDragOffTop;
  65. extern NSString * const LAEventScreenBottomSwipeLeft;
  66. extern NSString * const LAEventScreenBottomSwipeRight;
  67. extern NSString * const LAEventScreenLeftSwipeDown;
  68. extern NSString * const LAEventScreenLeftSwipeUp;
  69. extern NSString * const LAEventScreenRightSwipeDown;
  70. extern NSString * const LAEventScreenRightSwipeUp;
  71. extern NSString * const LAEventNameMotionShake;
  72. extern NSString * const LAEventNameHeadsetButtonPressSingle;
  73. extern NSString * const LAEventNameHeadsetButtonHoldShort;
  74. extern NSString * const LAEventNameHeadsetConnected;
  75. extern NSString * const LAEventNameHeadsetDisconnected;
  76. extern NSString * const LAEventNameLockScreenClockDoubleTap;
  77. extern NSString * const LAEventNameLockScreenClockTapHold;
  78. extern NSString * const LAEventNameLockScreenClockSwipeLeft;
  79. extern NSString * const LAEventNameLockScreenClockSwipeRight;
  80. extern NSString * const LAEventNameLockScreenClockSwipeDown;
  81. extern NSString * const LAEventNamePowerConnected;
  82. extern NSString * const LAEventNamePowerDisconnected;
  83. extern NSString * const LAEventNameThreeFingerTap;
  84. extern NSString * const LAEventNameThreeFingerPinch;
  85. extern NSString * const LAEventNameThreeFingerSpread;
  86. extern NSString * const LAEventNameFourFingerTap;
  87. extern NSString * const LAEventNameFourFingerPinch;
  88. extern NSString * const LAEventNameFourFingerSpread;
  89. extern NSString * const LAEventNameFiveFingerTap;
  90. extern NSString * const LAEventNameFiveFingerPinch;
  91. extern NSString * const LAEventNameFiveFingerSpread;
  92. extern NSString * const LAEventNameClamshellOpen;
  93. extern NSString * const LAEventNameClamshellClose;
  94. extern NSString * const LAEventNameSpringBoardIconFlickUp;
  95. extern NSString * const LAEventNameSpringBoardIconFlickDown;
  96. extern NSString * const LAEventNameSpringBoardIconFlickLeft;
  97. extern NSString * const LAEventNameSpringBoardIconFlickRight;
  98. extern NSString * const LAEventNameDeviceLocked;
  99. extern NSString * const LAEventNameDeviceUnlocked;
  100. extern NSString * const LAEventNameNetworkJoinedWiFi;
  101. extern NSString * const LAEventNameNetworkLeftWiFi;
  102. extern NSString * const LAEventNameFingerprintSensorPressSingle;
  103. // Icon Gestures
  104. extern NSString * const LAEventUserInfoDisplayIdentifier;
  105. extern NSString * const LAEventUserInfoIconView;
  106. extern NSString * const LAEventUserInfoUnlockedDeviceToSendEvent;