Skip to main content

Settings:getComparisonHeight()

Get the height used when comparing captured screens with templates.

Signature​

Settings:getComparisonHeight(): number

Returns

number - Height in pixels, or the device height when no override is set.

Description​

Template matching normalizes the screen to this size before comparing. 0 means "use the device's current height"; Settings:setComparisonHeight() sets an explicit value.