ESTRule

@interface ESTRule : NSObject

The ESTRule class defines single rule of <ESTTrigger> object. Each rule has state value that indicates if it was fulfilled or not.

  • Current state of the rule.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL state;

    Swift

    var state: Bool { get set }
  • Method that is invoked by trigger manager object to update state of the rule.

    When creating custom rule, this method should be implemented to update state property of this class, based on developer defined conditions.

    Declaration

    Objective-C

    - (void)update;

    Swift

    func update()