detach
Detaches this attached session on its owner thread while retaining its tree and content ownership.
Reattachment preserves the retained tree and requires another successful frame before input resumes. Detachment releases the last immutable frame and resets layout-dependent input ownership. Invalid lifecycle transitions leave state unchanged.
Throws
when called from the wrong thread, reentrantly, or when the session is not attached.