ESTTriggerManagerDelegate

@protocol ESTTriggerManagerDelegate <NSObject>

The ESTTriggerManagerDelegate protocol defines the delegate methods used to receive trigger state change events from an <ESTTriggerManager> object. Trigger manager engine allows to introduce higher level of abstraction and let developer focus on the acctual logic their application should follow. Each trigger is defined by set of rules that should be fulfilled to change make trigger state to positive. Change of trigger state is reported using <[ESTTriggerManagerDelegate triggerManager:triggerChangedState:]> method of your <delegate>. Out of the box trigger manager supports rules related to nearable proximity, motion and orientation, ambient nearable temperature as well as time and date.

In addition you can create your own rule definition related to parameters you are interested in (eg. weather information, GPS postion). To create new rule just create class that inherits from <ESTRule> class.

  • Informs delegate object about change for patricular trigger state (fullfiled or not).

    Declaration

    Objective-C

    - (void)triggerManager:(nonnull ESTTriggerManager *)manager
        triggerChangedState:(nonnull ESTTrigger *)trigger;

    Swift

    optional func triggerManager(_ manager: ESTTriggerManager, triggerChangedState trigger: ESTTrigger)

    Parameters

    manager

    The trigger manager object reporting the event.

    trigger

    trigger that has change its state (ESTTrigger object contains current state in state property).