public enum IntentParameterType
- Object
- Enum<IntentParameterType>
- IntentParameterType
ImplementsComparable<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 constants
STRING | Free text, or a closed vocabulary when the declaration lists options. |
INTEGER | A whole number. |
NUMBER | A fractional number. |
BOOLEAN | A yes/no value the platform can ask for directly. |
DATE | An instant. |
ENTITY | An app-defined noun declared with com.codename1.annotations.IntentEntity. |
Methods
public static IntentParameterType[] values() | |
public static IntentParameterType valueOf(String name) |
Inherited methods
Enum constant details
STRING
STRINGFree text, or a closed vocabulary when the declaration lists options.
INTEGER
INTEGERA whole number. Maps to Java
int and long.NUMBER
NUMBERA fractional number. Maps to Java
float and double.BOOLEAN
BOOLEANA yes/no value the platform can ask for directly.
DATE
DATEAn instant. Crosses the boundary as epoch milliseconds so no locale or
timezone parsing sits in the wire format.
ENTITY
ENTITYAn app-defined noun declared with
com.codename1.annotations.IntentEntity.
Crosses the boundary as the entity’s id string and is resolved back to an
object by the generated BY_ID query. This is the type that lets the
platform run its own picker before the handler is ever called.Method details
values
public static IntentParameterType[] values()valueOf
public static IntentParameterType valueOf(String name)