observe

fun observe(target: Element, options: ResizeObserverOptions = definedExternally)(source)

The observe() method of the ResizeObserver interface starts observing the specified Element or SVGElement.

MDN Reference