Enum NotSupportedReason

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<NotSupportedReason>

    public enum NotSupportedReason
    extends java.lang.Enum<NotSupportedReason>
    Enum describing reason why scanning is not supported.
    • Enum Constant Detail

      • UNSUPPORTED_ANDROID_VERSION

        public static final NotSupportedReason UNSUPPORTED_ANDROID_VERSION
        Indicates that current version of android is not supported. Newer Android version is required.
      • NO_CAMERA

        public static final NotSupportedReason NO_CAMERA
        Indicates that device does not have camera
      • BLACKLISTED_DEVICE

        public static final NotSupportedReason BLACKLISTED_DEVICE
        Indicates that device has been blacklisted by developers because it is known that scanning will not work on it
      • CUSTOM_UI_FORBIDDEN

        public static final NotSupportedReason CUSTOM_UI_FORBIDDEN
        Indicates that set license key does not allow setting this view on custom activity.
      • UNSUPPORTED_PROCESSOR_ARCHITECTURE

        public static final NotSupportedReason UNSUPPORTED_PROCESSOR_ARCHITECTURE
        Indicates that device has a processor that is not supported (for example ARMv7 processor without NEON SIMD instruction support)
    • Method Detail

      • values

        public static NotSupportedReason[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (NotSupportedReason c : NotSupportedReason.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static NotSupportedReason valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getDescription

        @NonNull
        public java.lang.String getDescription()