Package com.iizix.prop
Enum EnvProps.ClientCapability
- java.lang.Object
- java.lang.Enum<EnvProps.ClientCapability>
- com.iizix.prop.EnvProps.ClientCapability
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<EnvProps.ClientCapability>
- Enclosing class:
- EnvProps
public static enum EnvProps.ClientCapability extends java.lang.Enum<EnvProps.ClientCapability>
Capabilities of a Client.
Enum Constant Summary
Enum Constants Enum Constant Description Battery
Battery status capabilities.Camera
Camera capabilities.Compass
Compass capabilities.Contacts
Contacts database capabilities.Geolocation
GPS capabilities.GPS
GPS capabilities.Microphone
Microphone (sound capture) capabilities.Motion
Motion capabilities (accelerometer).Mouse
Mouse capabilities.Pen
Pen capabilities.Phone
Phone capabilities.Sound
Play music or basic sounds capabilities.SpeechRecognition
Speech synthesis (speech output).SpeechSynthesis
Speech synthesis (speech output).Touch
Touch capabilities.Vibration
Vibration capabilities.VideoCapture
Video capture capabilities.
Field Summary
Fields Modifier and Type Field Description java.lang.String
description
The English description.java.lang.String
textID
Locale text ID:"devcap." + {@link #name()}
.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getEnglishDescription()
Gets the English description.java.lang.String
getLocalizedDescription()
Gets the localized description.boolean
isSupported(EnvProps env)
Returns if supported.static EnvProps.ClientCapability
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static EnvProps.ClientCapability[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
Phone
public static final EnvProps.ClientCapability Phone
Phone capabilities.
Battery
public static final EnvProps.ClientCapability Battery
Battery status capabilities.
Contacts
public static final EnvProps.ClientCapability Contacts
Contacts database capabilities.
Compass
public static final EnvProps.ClientCapability Compass
Compass capabilities.
Camera
public static final EnvProps.ClientCapability Camera
Camera capabilities.
Geolocation
public static final EnvProps.ClientCapability Geolocation
GPS capabilities.
GPS
public static final EnvProps.ClientCapability GPS
GPS capabilities.
Touch
public static final EnvProps.ClientCapability Touch
Touch capabilities.
Mouse
public static final EnvProps.ClientCapability Mouse
Mouse capabilities.
Pen
public static final EnvProps.ClientCapability Pen
Pen capabilities.
Motion
public static final EnvProps.ClientCapability Motion
Motion capabilities (accelerometer).
Microphone
public static final EnvProps.ClientCapability Microphone
Microphone (sound capture) capabilities.
VideoCapture
public static final EnvProps.ClientCapability VideoCapture
Video capture capabilities.
Sound
public static final EnvProps.ClientCapability Sound
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
public static final EnvProps.ClientCapability Vibration
Vibration capabilities.
Method Detail
values
public static EnvProps.ClientCapability[] 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 (EnvProps.ClientCapability c : EnvProps.ClientCapability.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static EnvProps.ClientCapability 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 namejava.lang.NullPointerException
- if the argument is null
getEnglishDescription
public final java.lang.String getEnglishDescription()
Gets the English description.- Returns:
- The English description.
getLocalizedDescription
public final java.lang.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.