Enum IntentParameterType
- All Implemented Interfaces:
Comparable<IntentParameterType>
The parameter kinds an intent can accept.
The set is closed on purpose. Every entry has to survive being spoken aloud, typed into the Shortcuts app, filled by a language model, and carried across a platform boundary as text -- so it is the intersection of what iOS, Android and a JSON payload can all express, not the union.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA yes/no value the platform can ask for directly.An instant.An app-defined noun declared withcom.codename1.annotations.IntentEntity.A whole number.A fractional number.Free text, or a closed vocabulary when the declaration lists options. -
Method Summary
Modifier and TypeMethodDescriptionstatic IntentParameterTypeReturns the enum constant of this type with the specified name.static IntentParameterType[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
STRING
Free text, or a closed vocabulary when the declaration lists options. -
INTEGER
A whole number. Maps to Javaintandlong. -
NUMBER
A fractional number. Maps to Javafloatanddouble. -
BOOLEAN
A yes/no value the platform can ask for directly. -
DATE
An instant. Crosses the boundary as epoch milliseconds so no locale or timezone parsing sits in the wire format. -
ENTITY
An app-defined noun declared withcom.codename1.annotations.IntentEntity. Crosses the boundary as the entity's id string and is resolved back to an object by the generatedBY_IDquery. This is the type that lets the platform run its own picker before the handler is ever called.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-