Class SACrashDetectionManager

  • All Implemented Interfaces:
    NSObject

    public class SACrashDetectionManager
    extends NSObject
    SACrashDetectionManager Use SACrashDetectionManager to receive information about Vehicular Crash Detection events. Not all phone models support Crash Detection, check for availability before creating an instance of SACrashDetectionManager. Set the delegate immediately after creating an instance of SACrashDetectionManager. Creating multiple instances of SACrashDetectionManager is not supported and should be avoided. SACrashDetectionManager requires an entitlement from Apple. To apply for the entitlement, see Crash Detection Entitlement Request. API-Since: 16.0
    • Constructor Detail

      • SACrashDetectionManager

        protected SACrashDetectionManager​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • authorizationStatus

        public long authorizationStatus()
        authorizationStatus Returns a value indicating whether the user has authorized the app to receive Crash Detection updates
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • delegate

        @Nullable
        public @Nullable SACrashDetectionDelegate delegate()
        delegate The delegate object to receive Crash Detection events.
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isAvailable

        public static boolean isAvailable()
        available Returns a value indicating whether the current device supports Crash Detection.
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • requestAuthorizationWithCompletionHandler

        public void requestAuthorizationWithCompletionHandler​(@NotNull
                                                              @NotNull SACrashDetectionManager.Block_requestAuthorizationWithCompletionHandler handler)
        Requests the user’s permission to access Crash Detection information.
        Parameters:
        handler - Completion handler invoked with the status of the authorization request.
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setDelegate_unsafe

        public void setDelegate_unsafe​(@Nullable
                                       @Nullable SACrashDetectionDelegate value)
        delegate The delegate object to receive Crash Detection events.
      • setDelegate

        public void setDelegate​(@Nullable
                                @Nullable SACrashDetectionDelegate value)
        delegate The delegate object to receive Crash Detection events.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.
      • version_static

        public static long version_static()