getContentDensityClass() {
            return Device.support.touch ? "sapUiSizeCozy" : "sapUiSizeCompact";
        }
Retrieves the content density class according to the device.
@returns {string} The content density class.