Gesture

public class Gesture: BusinessObject

Wrapper class for gesture tracking

  • Enum with differents event type

    • unknown: unknown
    • tap: tap
    • swipe: swipe
    • scroll: scroll
    • pinch: pinch
    • pan: pan
    • rotate: rotate
    • refresh: refresh
    See more

    Declaration

    Swift

    @objc public enum GestureEventType: Int
  • Gesture actions

    • touch: simple gesture
    • navigate: navigation gesture
    • download: download action
    • exit: exit action
    • search: internal search action
    See more

    Declaration

    Swift

    @objc public enum GestureAction: Int
  • Touch name

    Declaration

    Swift

    public var name: String = ""
  • First chapter

    Declaration

    Swift

    public var chapter1: String?
  • Second chapter

    Declaration

    Swift

    public var chapter2: String?
  • Third chapter

    Declaration

    Swift

    public var chapter3: String?
  • Level 2

    Declaration

    Swift

    public var level2: Int = 0
  • Action - See GestureAction

    Declaration

    Swift

    public var action: GestureAction = GestureAction.touch
  • Type of touch - See GestureEventType

    Declaration

    Swift

    internal(set) public lazy var type: GestureEventType = GestureEventType.unknown
  • Screen information on which the gesture has been done

    Declaration

    Swift

    internal(set) public weak var screen: Screen?
  • Custom objects to add to gesture hit

    Declaration

    Swift

    public lazy var customObjects: CustomObjects = CustomObjects(gesture: self)
  • Internal Search

    Declaration

    Swift

    public var internalSearch: InternalSearch?
  • Undocumented

    Declaration

    Swift

    public class Gesture: BusinessObject
  • Send navigation gesture event If the gesture is generated by AutoTracking, do not call this function in the gestureWasDetected delegate, otherwise, the gesture will be sent twice.

    Declaration

    Swift

    public func sendNavigation()
  • Send exit gesture event If the gesture is generated by AutoTracking, do not call this function in the gestureWasDetected delegate, otherwise, the gesture will be sent twice.

    Declaration

    Swift

    public func sendExit()
  • Send download gesture event If the gesture is generated by AutoTracking, do not call this function in the gestureWasDetected delegate, otherwise, the gesture will be sent twice.

    Declaration

    Swift

    public func sendDownload()
  • Send touch gesture event If the gesture is generated by AutoTracking, do not call this function in the gestureWasDetected delegate, otherwise, the gesture will be sent twice.

    Declaration

    Swift

    public func sendTouch()
  • Send search gesture event If the gesture is generated by AutoTracking, do not call this function in the gestureWasDetected delegate, otherwise, the gesture will be sent twice.

    Declaration

    Swift

    public func sendSearch()