Interface IUISchemeListener
public interface IUISchemeListener
Listener for changes of the theme scheme a client shows: the shipped theme family and the resolved mode, light or dark (
UISchemes, order CC-THEME-DARK-V5). Fired when the client reports a new resolved scheme - the user chose one, a URL set one, the OS switched between day and night under an auto mode, or an application set one through IClientSessionGyro.setUIScheme(UISchemes.Family,UISchemes.Mode) - on the client session's Worker, once per distinct value.- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionvoidonUISchemeChanged(IClientSessionGyro clientGyro, UISchemes.Scheme shown, UISchemes.Scheme choice) Called when the scheme the client shows has changed.
Method Details
onUISchemeChanged
void onUISchemeChanged(IClientSessionGyro clientGyro, UISchemes.Scheme shown, UISchemes.Scheme choice) Called when the scheme the client shows has changed.- Parameters:
clientGyro- The client session gyro.shown- The scheme shown: the family and the resolved mode, light or dark; null when the client reported a scheme this server does not know.choice- The choice behind it, the mode as chosen (auto included), or null when the client reported none.