Summary:
Methods
| Inherited Methods
ConfigurationHelper
public
final
class
ConfigurationHelper
extends Object
java.lang.Object | |
↳ | androidx.core.content.res.ConfigurationHelper |
Helper class which allows access to properties of Configuration
in
a backward compatible fashion.
Summary
Public methods | |
---|---|
static
int
|
getDensityDpi(Resources resources)
Returns the target screen density being rendered to. |
Inherited methods | |
---|---|
Public methods
getDensityDpi
public static int getDensityDpi (Resources resources)
Returns the target screen density being rendered to.
Uses Configuration.densityDpi
when available, otherwise an approximation
is computed and returned.
Parameters | |
---|---|
resources |
Resources |
Returns | |
---|---|
int |