Initializes the event trigger with the specified location-based information.
SDKs
- iOS 11.0+
- Mac Catalyst 13.0+
- watchOS 4.0+
Framework
- Intents
Declaration
init(placemark: CLPlacemark, event: INSpatial Event)
Parameters
placemark
The location for which events are triggered.
event
A constant indicating whether events are delivered when arriving or leaving the specified location.
Return Value
An initialized event trigger object or nil
if the object could not be created.