AppComponentFactory

public class AppComponentFactory
extends AppComponentFactory

java.lang.Object
   ↳ android.app.AppComponentFactory
     ↳ androidx.core.app.AppComponentFactory


Version of AppComponentFactory that works with androidx libraries. Note: This will only work on API 28+ and does not backport AppComponentFactory functionality.

Summary

Public constructors

AppComponentFactory()

Public methods

final Activity instantiateActivity(ClassLoader cl, String className, Intent intent)
Activity instantiateActivityCompat(ClassLoader cl, String className, Intent intent)

Allows application to override the creation of activities.

final Application instantiateApplication(ClassLoader cl, String className)
Application instantiateApplicationCompat(ClassLoader cl, String className)

Allows application to override the creation of the application object.

final ContentProvider instantiateProvider(ClassLoader cl, String className)
ContentProvider instantiateProviderCompat(ClassLoader cl, String className)

Allows application to override the creation of providers.

final BroadcastReceiver instantiateReceiver(ClassLoader cl, String className, Intent intent)
BroadcastReceiver instantiateReceiverCompat(ClassLoader cl, String className, Intent intent)

Allows application to override the creation of receivers.

final Service instantiateService(ClassLoader cl, String className, Intent intent)
Service instantiateServiceCompat(ClassLoader cl, String className, Intent intent)

Allows application to override the creation of services.