Package-level declarations
Functions
Lazily creates or retrieves an AndroidScopes.ActivityRetainedScope tied to this ComponentActivity. This scope survives activity recreation due to configuration changes (e.g., screen rotation). It is managed by a hidden SavedHandleViewModel and is closed only when the activity is finished for good.
A type-safe overload of activityRetainedScope for inline usage.
Lazily creates or retrieves an AndroidScopes.ActivityScope tied to this ComponentActivity. The scope is automatically created and attached to the activity's lifecycle. It will be closed when the activity is destroyed.
A type-safe overload of activityScope for inline usage.
Retrieves the root scope from the Application context. The Application class must implement the RootComponent interface.
A helper function to lazily inject a dependency from the root scope.
Lazily creates or retrieves a AndroidScopes.ViewModelScope for a specific ViewModel type T. This scope is tied to the lifecycle of the ViewModel, surviving configuration changes. The scope is automatically closed when the ViewModel is cleared.