ViewTreeObserverRegistration


public 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 methods

abstract void

Removes the listener.

Public methods

remove

Added in 1.20.0-rc01
@MainThread
abstract void remove()

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