Skip to main content

Settings:setComparisonDensity()

Set the screen density (dpi) used when comparing templates.

Signature​

Settings:setComparisonDensity(density: number): void

Parameters​

ParameterTypeDescription
densitynumberDensity in dpi; 0 clears the value

Returns

void

Description​

Usually set from the macro's saved metadata, not by hand. Pair it with the comparison width and height so a macro recorded on one device matches correctly on another.

Compatible Version: 1.0.0.37 and up