public enum IntentParameterType

  1. Object
  2. Enum<IntentParameterType>
  3. 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

STRINGFree text, or a closed vocabulary when the declaration lists options.
INTEGERA whole number.
NUMBERA fractional number.
BOOLEANA yes/no value the platform can ask for directly.
DATEAn instant.
ENTITYAn 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

STRING
Free text, or a closed vocabulary when the declaration lists options.

INTEGER

INTEGER
A whole number. Maps to Java int and long.

NUMBER

NUMBER
A fractional number. Maps to Java float and double.

BOOLEAN

BOOLEAN
A yes/no value the platform can ask for directly.

DATE

DATE
An instant. Crosses the boundary as epoch milliseconds so no locale or timezone parsing sits in the wire format.

ENTITY

ENTITY
An 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)