ServiceLocatorInitializer

@RestrictTo(value = [RestrictTo.Scope.LIBRARY])
class ServiceLocatorInitializer : Initializer<SimpleServiceLocator<ServiceLocatorScope>>

An Initializer that automatically registers a production MainServiceLocator on app startup using the androidx.startup library.

This provides the out-of-the-box behavior for the simple-scaffold, ensuring the service locator is available without any manual setup in the Application class.

If you need to customize the startup sequence (e.g., to pre-register services), you can disable this initializer in your AndroidManifest.xml.

See also

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun create(context: Context): SimpleServiceLocator<ServiceLocatorScope>
Link copied to clipboard
open override fun dependencies(): List<Class<out Initializer<*>>>