Class SAEmergencyResponseManager

  • All Implemented Interfaces:
    NSObject

    public class SAEmergencyResponseManager
    extends NSObject
    * SAEmergencyResponseManager * * @discussion * Use SAEmergencyResponseManager to request actions in response to an emergency event. * Set the delegate to monitor the progress of requested emergency response actions. * SAEmergencyResponseManager requires user authorization for at least one of the emergency event detections e.g. SACrashDetectionEvent * * SAEmergencyResponseManager requires an entitlement from Apple to at least one of the emergency event detections. To apply for the entitlement, see respective detection mechanisms API-Since: 16.0
    • Constructor Detail

      • SAEmergencyResponseManager

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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 SAEmergencyResponseDelegate delegate()
        delegate The delegate object to receive updates about requested emergency response action.
      • description_static

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

        public void dialVoiceCallToPhoneNumberCompletionHandler​(@NotNull
                                                                @NotNull java.lang.String phoneNumber,
                                                                @NotNull
                                                                @NotNull SAEmergencyResponseManager.Block_dialVoiceCallToPhoneNumberCompletionHandler handler)
        Requests the system to dial a voice call on behalf of the user. Apps running in the background / foreground can request to dial a voice call without user confirmation. Emergency numbers are not allowed. Requests are accepted only if user has authorized the app to receive and handle emergency detection events and only for a limited time after an emergency event is detected. [@sa] SAEmergencyResponseDelegate
        Parameters:
        phoneNumber - Apps can request the system to dial a voice call by providing a phone number. Emergency numbers are not allowed.
        handler - Completion handler invoked with the status of the voice call request. If requested is accepted, the handler is invoked with a nil error. Interpret the error returned using SAErrorDomain. Requests will fail with SAErrorNotAuthorized if user has not authorized the app to receive and handle any emergency events. Requests will fail with SAErrorNotAvailable if invoked outside of the limited time window after an emergency event is detected. Use the SAEmergencyResponseDelegate to monitor the progress of the voice call.
      • 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)
      • 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)
      • 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 SAEmergencyResponseDelegate value)
        delegate The delegate object to receive updates about requested emergency response action.
      • setDelegate

        public void setDelegate​(@Nullable
                                @Nullable SAEmergencyResponseDelegate value)
        delegate The delegate object to receive updates about requested emergency response action.
      • 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()