AppComponent

@Singleton
interface AppComponent

Dagger component for dependency injection. This is the main entry point to the Dagger framework.

Types

Link copied to clipboard
@Component.Factory
interface Factory

Interface factory for creating instances of AppComponent.

Functions

Link copied to clipboard
abstract fun inject(activity: MainActivity)

A method to inject dependencies onto a specified activity.

abstract fun inject(service: MainService)

A method to inject dependencies onto a specified service.

abstract fun inject(fileProvider: ModelFileProvider)

A method to inject dependencies onto a specified file provider.

abstract fun inject(viewModel: MainViewModel)

A method to inject dependencies onto a specified view model.