I'm setting up custom intents for my widget. The values are enums, and I'm wondering if I can set the cases to an array that changes programmatically from a function.
You can provide a dynamic list of options by implementing a custom intent handler. For more details see Making a Configurable Widget, and there are a couple video sessions that cover this in detail as well: