Package org.robolectric.shadows
Interface ShadowResources.OnConfigurationChangeListener
-
- Enclosing class:
- ShadowResources
public static interface ShadowResources.OnConfigurationChangeListenerListener callback that's called when the configuration is updated for a resources. The callback receives the old and new configs (and can useConfiguration.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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonConfigurationChange(Configuration oldConfig, Configuration newConfig, DisplayMetrics newMetrics)
-
-
-
Method Detail
-
onConfigurationChange
void onConfigurationChange(Configuration oldConfig, Configuration newConfig, DisplayMetrics newMetrics)
-
-