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.music
Play music capabilities.pen
Pen capabilities.phone
Phone capabilities.sound
Play basic sounds capabilities.speechRecognition
Speech synthesis (speech output).speechSynthesis
Speech synthesis (speech output).touch
Touch capabilities.vibration
Vibration capabilities.videocapture
Video capture capabilities.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDescription()
Gets the 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 basic sounds capabilities.
music
public static final EnvProps.ClientCapability music
Play music 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
getDescription
public java.lang.String getDescription()
Gets the description.
isSupported
public boolean isSupported(EnvProps env)
Returns if supported.