Enum Class EnvProps.ClientCapability
- All Implemented Interfaces:
Serializable, Comparable<EnvProps.ClientCapability>, Constable
- Enclosing class:
EnvProps
Capabilities of a Client.
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.Deprecated.Retired from selectors in v5 (the termcap-cameramatches nothing): never implemented, always false.Deprecated.Retired from selectors in v5 (the termcap-compassmatches nothing): never implemented, always false.Deprecated.Retired from selectors in v5 (the termcap-contactsmatches nothing): never implemented, always false.GPS capabilities.Deprecated.Retired from selectors in v5 (the termcap-GPSmatches nothing): it answers "a position was already obtained", not GPS; readEnvProps.getGeolocation()instead.Deprecated.Retired from selectors in v5 (the termcap-microphonematches nothing): never implemented, always false.Deprecated.Retired from selectors in v5 (the termcap-motionmatches 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 termcap-penmatches nothing): never implemented, always false.Deprecated.Retired from selectors in v5 (the termcap-phonematches nothing): placing calls cannot be detected; use the selector term dev-isSmartphone.Deprecated.Retired from selectors in v5 (the termcap-soundmatches 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 termcap-vibrationmatches nothing): never implemented, always false.Deprecated.Retired from selectors in v5 (the termcap-videocapturematches nothing): never implemented, always false.Field Summary
FieldsMethod Summary
Modifier and TypeMethodDescriptionfinal StringGets the English description.final StringGets the localized description.final booleanisSupported(EnvProps env) Returns if supported.static EnvProps.ClientCapabilityReturns the enum constant of this class with the specified name.static EnvProps.ClientCapability[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
Phone
Deprecated.Retired from selectors in v5 (the termcap-phonematches nothing): placing calls cannot be detected; use the selector term dev-isSmartphone.Phone capabilities.Battery
Deprecated.Retired from selectors in v5 (the termcap-batterymatches nothing): never implemented, always false.Battery status capabilities.Contacts
Deprecated.Retired from selectors in v5 (the termcap-contactsmatches nothing): never implemented, always false.Contacts database capabilities.Compass
Deprecated.Retired from selectors in v5 (the termcap-compassmatches nothing): never implemented, always false.Compass capabilities.Camera
Deprecated.Retired from selectors in v5 (the termcap-cameramatches nothing): never implemented, always false.Camera capabilities.Geolocation
GPS capabilities.GPS
Deprecated.Retired from selectors in v5 (the termcap-GPSmatches nothing): it answers "a position was already obtained", not GPS; readEnvProps.getGeolocation()instead.GPS capabilities.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
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.Retired from selectors in v5 (the termcap-penmatches nothing): never implemented, always false.Pen capabilities.Motion
Deprecated.Retired from selectors in v5 (the termcap-motionmatches nothing): never implemented, always false.Motion capabilities (accelerometer).Microphone
Deprecated.Retired from selectors in v5 (the termcap-microphonematches nothing): never implemented, always false.Microphone (sound capture) capabilities.VideoCapture
Deprecated.Retired from selectors in v5 (the termcap-videocapturematches nothing): never implemented, always false.Video capture capabilities.Sound
Deprecated.Retired from selectors in v5 (the termcap-soundmatches nothing): never implemented, always false.Play music or basic sounds capabilities.SpeechSynthesis
Speech synthesis (speech output).SpeechRecognition
Speech synthesis (speech output).Vibration
Deprecated.Retired from selectors in v5 (the termcap-vibrationmatches nothing): never implemented, always false.Vibration capabilities.
Field Details
textID
Locale text ID:"devcap." + {@link #name()}.description
The English description.
Method Details
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
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 nameNullPointerException- if the argument is null
getEnglishDescription
Gets the English description.- Returns:
- The English description.
getLocalizedDescription
Gets the localized description.- Returns:
- The localized description, if any, otherwise the English description.
isSupported
Returns if supported.- Parameters:
env- The environment instance.- Returns:
- The supported flag. In case of exception, these are logged as warnings and
falseis returned.
cap-batterymatches nothing): never implemented, always false.