toothpick-runtime / toothpick.configuration / Configuration / preventMultipleRootScopes

preventMultipleRootScopes

open fun preventMultipleRootScopes(): Configuration

Prevents the creation of multiple root scopes in the scope forest. TP scope forest will be restricted to a scope tree. On android this option can help to detect when a scope is reopened after it was destroyed.

Return
a configuration that allows a single root scope.