Contents

SACrashDetectionManager

Provides registration and management of Crash Detection events.

Declaration

class SACrashDetectionManager

Overview

Use this class to determine Crash Detection availabilty on iPhone, detect authorization status, and register for Crash Detection events. Not all iPhones support Crash Detection, so verify that isAvailable returns true.

Check the value of authorizationStatus to determine if the person designates this app on their iPhone to receive Crash Detection events. If the value is not SAAuthorizationStatus.authorized, set delegate and call requestAuthorization(completionHandler:) to request authorization.

After your app has authorization to receive Crash Detection events, adopt SACrashDetectionDelegate and implement crashDetectionManager(_:didDetect:). If a vehicular crash occurs, the system calls the method with the Crash Detection event.

Topics

Determining availability

Requesting authorization

See Also

Detecting a crash