platform.window:getScrollHeight()
This function returns the current scroll height if a docked keyboard is shown or 0 otherwise. Therefore the return value will always be 0 on platforms not supporting touch.
See touch.isKeyboardAvailable() for details about keyboard availability.
Introduced in platform.apiLevel = '2.2'