Enum Class EnvProps.ClientCapability

java.lang.Object
java.lang.Enum<EnvProps.ClientCapability>
com.iizix.prop.EnvProps.ClientCapability
All Implemented Interfaces:
Serializable, Comparable<EnvProps.ClientCapability>, Constable
Enclosing class:
EnvProps

public static enum EnvProps.ClientCapability extends Enum<EnvProps.ClientCapability>
Capabilities of a Client.
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Deprecated.
    Retired from selectors in v5 (the term cap-battery matches nothing): never implemented, always false.
    Deprecated.
    Retired from selectors in v5 (the term cap-camera matches nothing): never implemented, always false.
    Deprecated.
    Retired from selectors in v5 (the term cap-compass matches nothing): never implemented, always false.
    Deprecated.
    Retired from selectors in v5 (the term cap-contacts matches nothing): never implemented, always false.
    GPS capabilities.
    Deprecated.
    Retired from selectors in v5 (the term cap-GPS matches nothing): it answers "a position was already obtained", not GPS; read EnvProps.getGeolocation() instead.
    Deprecated.
    Retired from selectors in v5 (the term cap-microphone matches nothing): never implemented, always false.
    Deprecated.
    Retired from selectors in v5 (the term cap-motion matches nothing): never implemented, always false.
    Mouse capabilities: a fine pointer (a mouse, a trackpad or a pen), from the media query (any-pointer: fine) (dev.anyFine).
    Deprecated.
    Retired from selectors in v5 (the term cap-pen matches nothing): never implemented, always false.
    Deprecated.
    Retired from selectors in v5 (the term cap-phone matches nothing): placing calls cannot be detected; use the selector term dev-isSmartphone.
    Deprecated.
    Retired from selectors in v5 (the term cap-sound matches nothing): never implemented, always false.
    Speech synthesis (speech output).
    Speech synthesis (speech output).
    Touch capabilities: a touch screen, tablets and touch notebooks included.
    Deprecated.
    Retired from selectors in v5 (the term cap-vibration matches nothing): never implemented, always false.
    Deprecated.
    Retired from selectors in v5 (the term cap-videocapture matches nothing): never implemented, always false.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final String
    The English description.
    final String
    Locale text ID: "devcap." + {@link #name()}.
  • Method Summary

    Modifier and Type
    Method
    Description
    final String
    Gets the English description.
    final String
    Gets the localized description.
    final boolean
    Returns if supported.
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • Phone

      @Deprecated public static final EnvProps.ClientCapability Phone
      Deprecated.
      Retired from selectors in v5 (the term cap-phone matches nothing): placing calls cannot be detected; use the selector term dev-isSmartphone.
      Phone capabilities.
    • Battery

      @Deprecated public static final EnvProps.ClientCapability Battery
      Deprecated.
      Retired from selectors in v5 (the term cap-battery matches nothing): never implemented, always false.
      Battery status capabilities.
    • Contacts

      @Deprecated public static final EnvProps.ClientCapability Contacts
      Deprecated.
      Retired from selectors in v5 (the term cap-contacts matches nothing): never implemented, always false.
      Contacts database capabilities.
    • Compass

      @Deprecated public static final EnvProps.ClientCapability Compass
      Deprecated.
      Retired from selectors in v5 (the term cap-compass matches nothing): never implemented, always false.
      Compass capabilities.
    • Camera

      @Deprecated public static final EnvProps.ClientCapability Camera
      Deprecated.
      Retired from selectors in v5 (the term cap-camera matches nothing): never implemented, always false.
      Camera capabilities.
    • Geolocation

      public static final EnvProps.ClientCapability Geolocation
      GPS capabilities.
    • GPS

      @Deprecated public static final EnvProps.ClientCapability GPS
      Deprecated.
      Retired from selectors in v5 (the term cap-GPS matches nothing): it answers "a position was already obtained", not GPS; read EnvProps.getGeolocation() instead.
      GPS capabilities.
    • Touch

      public static final EnvProps.ClientCapability Touch
      Touch capabilities: a touch screen, tablets and touch notebooks included. iiziRun on iOS or Android always has one; a Browser answers the media query (any-pointer: coarse) (dev.anyCoarse). A client from before v5 reports neither and is answered from its user agent as before: a phone.
    • Mouse

      public static final EnvProps.ClientCapability Mouse
      Mouse capabilities: a fine pointer (a mouse, a trackpad or a pen), from the media query (any-pointer: fine) (dev.anyFine). A client from before v5 reports none and is answered from its user agent as before: a desktop.
    • Pen

      @Deprecated public static final EnvProps.ClientCapability Pen
      Deprecated.
      Retired from selectors in v5 (the term cap-pen matches nothing): never implemented, always false.
      Pen capabilities.
    • Motion

      @Deprecated public static final EnvProps.ClientCapability Motion
      Deprecated.
      Retired from selectors in v5 (the term cap-motion matches nothing): never implemented, always false.
      Motion capabilities (accelerometer).
    • Microphone

      @Deprecated public static final EnvProps.ClientCapability Microphone
      Deprecated.
      Retired from selectors in v5 (the term cap-microphone matches nothing): never implemented, always false.
      Microphone (sound capture) capabilities.
    • VideoCapture

      @Deprecated public static final EnvProps.ClientCapability VideoCapture
      Deprecated.
      Retired from selectors in v5 (the term cap-videocapture matches nothing): never implemented, always false.
      Video capture capabilities.
    • Sound

      @Deprecated public static final EnvProps.ClientCapability Sound
      Deprecated.
      Retired from selectors in v5 (the term cap-sound matches nothing): never implemented, always false.
      Play music or basic sounds capabilities.
    • SpeechSynthesis

      public static final EnvProps.ClientCapability SpeechSynthesis
      Speech synthesis (speech output).
    • SpeechRecognition

      public static final EnvProps.ClientCapability SpeechRecognition
      Speech synthesis (speech output).
    • Vibration

      @Deprecated public static final EnvProps.ClientCapability Vibration
      Deprecated.
      Retired from selectors in v5 (the term cap-vibration matches nothing): never implemented, always false.
      Vibration capabilities.
  • Field Details

    • textID

      public final String textID
      Locale text ID: "devcap." + {@link #name()}.
    • description

      public final String description
      The English description.
  • Method Details

    • values

      public static EnvProps.ClientCapability[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static EnvProps.ClientCapability valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getEnglishDescription

      public final String getEnglishDescription()
      Gets the English description.
      Returns:
      The English description.
    • getLocalizedDescription

      public final String getLocalizedDescription()
      Gets the localized description.
      Returns:
      The localized description, if any, otherwise the English description.
    • isSupported

      public final boolean isSupported(EnvProps env)
      Returns if supported.
      Parameters:
      env - The environment instance.
      Returns:
      The supported flag. In case of exception, these are logged as warnings and false is returned.