API redesign for platform specific behavior #217
Labels
enhancement
New feature or change to an existing feature
good first issue
Well scoped and good for newcomers
Milestone
Gesture settings, ornament settings, and onClick APIs are currently designed around native, with JS support done in a best-effort way that sometimes doesn't match the name:
Maybe the above issues will be obsolete once we reimplement all gestures and controls in Compose. But even then, there will inevitably be some platform specific behavior, for example JS doesn't allow setting an FPS cap, and Android has a "texture mode" renderer with improved animation interop at the cost of performance. Currently we don't allow configuring this at all.
We need some API suited to platform specific settings. Is it a data class in common, with parameter names denoting which settings apply to which platforms? Is it an expect/actual class, requiring callers to instantiate it in platform specific source sets? Leaning the former for simplicity, but unsure.
cc @westnordost for API thoughts
The text was updated successfully, but these errors were encountered: