Skip to content

resolveStatusBarBand

Reads the row under the status bar’s content and says whether the band is clear of the app.

The band’s height is a number a caller measured once, and a measured number can go stale — a taller status bar, or an Obsidian that draws higher, would have the capture quietly paint over the product. So the row just below the bar’s own content is required to be one flat color all the way across: that is what an empty band looks like, and it is what the fill color is read from.

Import:

import { resolveStatusBarBand } from 'obsidian-integration-testing';

Signature:

function resolveStatusBarBand(params: ResolveStatusBarBandParams): StatusBarBandVerdict

Parameters:

Parameter Type Description
params ResolveStatusBarBandParams The frame’s raw pixels and the band’s geometry.

Returns: StatusBarBandVerdict — What the scanned row holds.


Links to this page: