destroyOnDetach

abstract fun destroyOnDetach()

If the owning view is attached, flags this lifecycle to be set to DESTROYED as soon as the owning view is detached. If the view is not attached (either because it's never been attached, or because it was attached and then detached), then it will destroy the lifecycle immediately.