Class ENStatus


  • public final class ENStatus
    extends java.lang.Object
    =========================================================================================================================== Overall status of Exposure Notification on the system. API-Since: 12.5
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long Active
      Exposure Notification is active on the system.
      static long BluetoothOff
      Bluetooth has been turned off on the system.
      static long Disabled
      Exposure Notification is disabled.
      static long Paused
      For future use.
      static long Restricted
      Exposure Notification is not active due to system restrictions, such as parental controls.
      static long Unauthorized
      Exposure Notification is not available due to insufficient authorization.
      static long Unknown
      Status of Exposure Notification is unknown.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • Unknown

        public static final long Unknown
        Status of Exposure Notification is unknown. This is the status before ENManager has activated successfully. API-Since: 12.5
        See Also:
        Constant Field Values
      • Active

        public static final long Active
        Exposure Notification is active on the system. API-Since: 12.5
        See Also:
        Constant Field Values
      • Disabled

        public static final long Disabled
        Exposure Notification is disabled. setExposureNotificationEnabled:completionHandler can be used to enable it. API-Since: 12.5
        See Also:
        Constant Field Values
      • BluetoothOff

        public static final long BluetoothOff
        Bluetooth has been turned off on the system. Bluetooth is required for Exposure Notification. Note: this may not match the state of Bluetooth as reported by CoreBluetooth. Exposure Notification is a system service and can use Bluetooth in situations when apps cannot. So for the purposes of Exposure Notification, it's better to use this API instead of CoreBluetooth. API-Since: 12.5
        See Also:
        Constant Field Values
      • Restricted

        public static final long Restricted
        Exposure Notification is not active due to system restrictions, such as parental controls. When in this state, the app cannot enable Exposure Notification. API-Since: 12.5
        See Also:
        Constant Field Values
      • Paused

        public static final long Paused
        For future use. Not returned by any APIs yet. API-Since: 12.5
        See Also:
        Constant Field Values
      • Unauthorized

        public static final long Unauthorized
        Exposure Notification is not available due to insufficient authorization. API-Since: 12.5
        See Also:
        Constant Field Values