ViewTreeObserverRegistration


fun interface ViewTreeObserverRegistration


Handle for a ViewTreeObserver listener that was added with a scope.

The listener is removed when its scope ends. Call remove to remove it sooner.

Summary

Public functions

Unit

Removes the listener.

Public functions

remove

Added in 1.20.0-rc01
@MainThread
fun remove(): Unit

Removes the listener. Does nothing if the listener was already removed.