AppPickerContext
A dependency injection container that provides instances of various components required by the app picker.
This class is designed to be easily extendable for testing or customization purposes. It uses lazy initialization for some of its properties to optimize performance.
Parameters
The application context, used for accessing system services like PackageManager.
Properties
Provides an instance of AbstractAppDataListFactory which is responsible for creating lists of application data. The specific implementation of the factory is determined by calling AbstractAppDataListFactory.getFactory.
Provides an AppDataRepository instance, responsible for providing access to application data. It utilizes appDataListFactory to obtain the underlying data. This property is lazily initialized.
Provides a DataLoader instance, responsible for loading and processing application data. It utilizes appDataListFactory to create lists of app data and packageManagerHelper for package-related operations. This property is lazily initialized.
Provides an instance of PackageManagerHelper for interacting with the Android PackageManager. This is used to retrieve information about installed applications.
Provides a SelectStateLoader instance, responsible for managing the selection state of items in the picker. This property is lazily initialized.
Provides a ViewDataRepository instance, responsible for managing and providing access to view-specific data. It utilizes dataLoader to load application data and selectStateLoader to manage selection states. This property is lazily initialized.