Skip to content

Document InputActivity's optional selected_callback - #11

Open
bitcoin3us wants to merge 1 commit into
MicroPythonOS:mainfrom
bitcoin3us:docs/input-activity-selected-callback
Open

bitcoin3us wants to merge 1 commit into
MicroPythonOS:mainfrom
bitcoin3us:docs/input-activity-selected-callback

Conversation

@bitcoin3us

Copy link
Copy Markdown
Contributor

Companion to MicroPythonOS/MicroPythonOS#298, which adds an optional selected_callback key to the setting dict handled by InputActivity.

Adds a bullet to the InputActivity page (next to allow_deselect) and a pointer bullet on the SettingActivity keys list: selected_callback(value) fires on every radiobuttons/dropdown pick before Save, including a re-tap of the already-selected radio, so a picker can preview a choice live (e.g. play the sound the user just tapped). changed_callback still fires only after Save when the stored value changed; exceptions inside selected_callback are logged and swallowed.

Should merge together with #298.

🤖 Generated with Claude Code

…k key

Companion to MicroPythonOS/MicroPythonOS#298: `selected_callback(value)`
fires on every radiobuttons/dropdown pick before Save (re-tapping the
active radio fires again) so pickers can preview a choice live, e.g. play
a sound. `changed_callback` semantics are unchanged.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant