Changes the enabled state of the trigger.
- iOS 8.0+
TRUEto enable the trigger,
falseto disable it.
The block executed after the request is processed.
nilon success; otherwise, error object indicating the reason for failure.
When a trigger is enabled its firing conditions are checked for validity and the system starts tracking the trigger and when it will next fire.
In addition to having valid firing conditions, to be successfully enabled a trigger must have at least one action set associated with it, and every action set associated with the trigger must have at least one action.