Skip to content

@serenity-is/corelib / LayoutTimer / off

Function: off()

off(key): number

Defined in: src/compat/layouttimer.ts:223

Unregisters a handler previously registered with onSizeChange / onWidthChange / onHeightChange / onShown. Stops the internal polling timer when no registrations remain.

Parameters

key

number

Registration key to remove.

Returns

number

0 for compatibility with the legacy API.