updatePredicate(_:completionHandler:)
Replaces the predicate used to evaluate execution of the scene associated with the event trigger.
Declaration
func updatePredicate(_ predicate: NSPredicate?, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)func updatePredicate(_ predicate: NSPredicate?) async throwsParameters
- predicate:
The new predicate to use with the event trigger.
- completion:
A block that executes after processing the request.
The block takes the following parameter:
- error
If the request was successful, the value of
errorisnil; otherwise, the value provides more information about the request status.