Package com.iizix.prop
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 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Enum ConstantDescriptionBattery status capabilities.Camera capabilities.Compass capabilities.Contacts database capabilities.GPS capabilities.GPS capabilities.Microphone (sound capture) capabilities.Motion capabilities (accelerometer).Mouse capabilities.Pen capabilities.Phone capabilities.Play music or basic sounds capabilities.Speech synthesis (speech output).Speech synthesis (speech output).Touch capabilities.Vibration capabilities.Video capture capabilities.Field Summary
Method Summary
Modifier and TypeMethodDescriptionfinal String
Gets the English description.final String
Gets the localized description.final boolean
isSupported
(EnvProps env) Returns if supported.static EnvProps.ClientCapability
Returns 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
Phone capabilities.Battery
Battery status capabilities.Contacts
Contacts database capabilities.Compass
Compass capabilities.Camera
Camera capabilities.Geolocation
GPS capabilities.GPS
GPS capabilities.Touch
Touch capabilities.Mouse
Mouse capabilities.Pen
Pen capabilities.Motion
Motion capabilities (accelerometer).Microphone
Microphone (sound capture) capabilities.VideoCapture
Video capture capabilities.Sound
Play music or basic sounds capabilities.SpeechSynthesis
Speech synthesis (speech output).SpeechRecognition
Speech synthesis (speech output).Vibration
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
false
is returned.