getInwardBounds Function

external fun getInwardBounds(tags: Array<ScanLayout.Tag>): RectF?

Returns the smallest rectangle enclosing the innermost tags of a set.

Not every tag passed in counts toward the result. Tags this layout does not recognise are dropped, as is any tag whose content is wholly accounted for by other tags in the set; and where the set holds both a tag and the tags nested inside it, only the innermost ones are measured. The rectangle therefore follows the text rather than the blocks containing it.

Return

the enclosing rectangle, or null if no tag in the set survives that filtering

Parameters

  • tags — the tags to measure
Top