Implement Window::theme
and WindowEvent::ThemeChanged
on iOS and Android.
#3994
Labels
Window::theme
and WindowEvent::ThemeChanged
on iOS and Android.
#3994
Window::theme
andWindowEvent::ThemeChanged
are incomplete on some platforms, so I'm adding this here to document platform APIs I'm aware of for supporting these.on iOS:
Window::theme
can likely be implemented withUITraitEnvironment
which UIView implements.WindowEvent::ThemeChanged
can be triggered by a handler withregisterForTraitChanges
.on Android:
Window::theme
can likely be implemented by looking atConfiguration
fromContextThemeWrapper.getResources()
; this is wired through inandroid-activity
withConfigurationRef::ui_mode_type
.and
WindowEvent::ThemeChanged
could be triggered byView.onConfigurationChanged()
but this requires the manifest's<activity>
element to have anandroid:configChanges
attribute containinguiMode
.android-activity
currently wires this through withMainEvent::ConfigChanged
.The text was updated successfully, but these errors were encountered: