MetroAppComponentProviders

An interface of common Map multibinding providers for Android "app components" like Activities, Services, etc. This is intended for use with MetroAppComponentFactory to allow for easy constructor injection of these types with minSdk 28+.

See also

Properties

Link copied to clipboard
@Multibinds(allowEmpty = true)
abstract val activityProviders: Map<KClass<out Activity>, Provider<Activity>>

A multibinding map of Activity classes to their providers accessible for MetroAppComponentFactory.

Link copied to clipboard

A multibinding map of ContentProvider classes to their providers accessible for MetroAppComponentFactory.

Link copied to clipboard

A multibinding map of BroadcastReceiver classes to their providers accessible for MetroAppComponentFactory.

Link copied to clipboard
@Multibinds(allowEmpty = true)
abstract val serviceProviders: Map<KClass<out Service>, Provider<Service>>

A multibinding map of Service classes to their providers accessible for MetroAppComponentFactory.