Entish Docs (35% documented)

Entish Reference EventHandler Class Reference

EventHandler

Undocumented

  • How often the condition block is executed.

    Declaration

    Swift

    public var checkConditionInterval : NSTimeInterval = 0.5
  • The minimum interval between executions of the action block.

    Declaration

    Swift

    public var throttleInterval       : NSTimeInterval = 0.5
  • If true, the handler will be removed after the first execution of the action block.

    Declaration

    Swift

    public var removeAfterFiring      : Bool = false
  • Undocumented

  • Sets the condition-checking block for the event handler. When this block returns true, the action block is fired. This method is chainable.

    Declaration

    Swift

    public func when(block:ConditionBlock) -> EventHandler
  • Sets the action block for the event handler. The action block is executed any time the condition block is called and returns true. This method is chainable.

    Declaration

    Swift

    public func then(block:ActionBlock) -> EventHandler
  • Undocumented

  • Undocumented