ESTTriggerManager
Deprecated
Deprecated since 4.31.0.
@interface ESTTriggerManager : NSObject <ESTTriggerDelegate>
The ESTTriggerManager
class defines the interface for defining real life rules based triggers.
-
Array of alraedy registered monitored triggers.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSArray<ESTTrigger *> *_Nonnull triggers;
Swift
var triggers: [ESTTrigger] { get }
-
Starts monitoring for defined trigger.
Events are delivered to the
<[ESTTriggerManagerDelegate triggerManager:triggerChangedState:]>
method of your<delegate>
.See
stopMonitoringForTriggerWithIdentifier:
Declaration
Objective-C
- (void)startMonitoringForTrigger:(nonnull ESTTrigger *)trigger;
Swift
func startMonitoring(for trigger: ESTTrigger)
Parameters
trigger
Trigger object that you want to monitor for. This parameter must not be
nil
. -
Stops monitoring for defined trigger.
If object with specified identifier is not currently being monitored, this method has no effect.
See
startMonitoringForTrigger:
Declaration
Objective-C
- (void)stopMonitoringForTriggerWithIdentifier:(nonnull NSString *)identifier;
Swift
func stopMonitoringForTrigger(withIdentifier identifier: String)
Parameters
identifier
Trigger identifier that was defined for trigger passed to startMonitoringForTrigger method. This parameter must not be
nil
. -
Returns state for trigger with given identifier.
If object with specified identifier is not currently being monitored, this method will return NO.
See
startMonitoringForTrigger:
Declaration
Objective-C
- (BOOL)stateForTriggerWithIdentifier:(nonnull NSString *)identifier;
Swift
func stateForTrigger(withIdentifier identifier: String) -> Bool
Parameters
identifier
Trigger identifier that was defined for trigger passed to startMonitoringForTrigger method.