Returns all events that match a given predicate.
- iOS 4.0+
- macOS 10.8+
- Mac Catalyst 13.0+Beta
- watchOS 2.0+
All events that match
predicate, as an array of
Only events that have been committed are included in the results. Events saved using
save(_:span:commit:) with the
commit parameter set to
false must call
commit() beforehand to be included.
This method is synchronous. For asynchronous behavior, run the method on another thread with
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software