Package org.robolectric.shadows
Interface ShadowResources.OnConfigurationChangeListener
- Enclosing class:
- ShadowResources
public static interface ShadowResources.OnConfigurationChangeListener
Listener callback that's called when the configuration is updated for a resources. The callback
receives the old and new configs (and can use
Configuration.diff(Configuration)
to
produce a diff). The callback is called after the configuration has been applied to the
underlying resources, so obtaining resources will use the new configuration in the callback.-
Method Summary
Modifier and TypeMethodDescriptionvoid
onConfigurationChange
(Configuration oldConfig, Configuration newConfig, DisplayMetrics newMetrics)
-
Method Details
-
onConfigurationChange
void onConfigurationChange(Configuration oldConfig, Configuration newConfig, DisplayMetrics newMetrics)
-