ConfigurationHelper

Added in 1.1.0

class ConfigurationHelper


Helper class which allows access to properties of Configuration in a backward compatible fashion.

Summary

Public functions

java-static Int

Returns the target screen density being rendered to.

Public functions

getDensityDpi

Added in 1.1.0
java-static fun getDensityDpi(resources: Resources): Int

Returns the target screen density being rendered to.

Uses Configuration.densityDpi when available, otherwise an approximation is computed and returned.