SafetyKit detects vehicle crash events and coordinates emergency response and Emergency SOS for safety apps on iOS, macOS, and watchOS. Use SACrashDetectionManager together with SACrashDetectionDelegate to receive SACrashDetectionEvent notifications, and SAEmergencyResponseManager with SAEmergencyResponseDelegate to coordinate the emergency response. Before monitoring, check the app's SAAuthorizationStatus, and handle failures reported through SAError.
Crash Detection 3
Monitor for vehicle crash events and respond when one is detected.
- ClSACrashDetectionManagerwatchOS 10.1+SACrashDetectionManager
- PrSACrashDetectionDelegatewatchOS 10.1+SACrashDetectionDelegate
- ClSACrashDetectionEventwatchOS 10.1+@brief This object describes a Crash Detection event and response to it.
Emergency Response 2
Coordinate the emergency response and Emergency SOS after a crash.
- ClSAEmergencyResponseManagerwatchOS 10.1+SAEmergencyResponseManager
- PrSAEmergencyResponseDelegatewatchOS 10.1+SAEmergencyResponseDelegate
Authorization 1
Check whether your app is permitted to monitor for crash detection events.
- EnSAAuthorizationStatuswatchOS 10.1+Constants that indicate whether your app is authorized to monitor for crash detection events.
Errors 1
Handle failures reported while monitoring or coordinating a response.
- StSAErrorwatchOS 10.1+A structure that describes errors encountered while detecting crashes or coordinating a response.