-
- All Implemented Interfaces:
-
io.getstream.chat.android.client.persistance.repository.factory.RepositoryFactory.Provider,io.getstream.chat.android.client.plugin.DependencyResolver,io.getstream.chat.android.client.plugin.factory.PluginFactory
public final class StreamOfflinePluginFactory implements PluginFactory, RepositoryFactory.Provider
Implementation of PluginFactory that provides OfflinePlugin.
-
-
Constructor Summary
Constructors Constructor Description StreamOfflinePluginFactory(Context appContext, Set<String> ignoredChannelTypes, Boolean isLocalUnreadCountEnabled, Function0<Long> now)StreamOfflinePluginFactory(Context appContext, Set<String> ignoredChannelTypes, Boolean isLocalUnreadCountEnabled)StreamOfflinePluginFactory(Context appContext, Set<String> ignoredChannelTypes)StreamOfflinePluginFactory(Context appContext)
-
Method Summary
Modifier and Type Method Description <T extends Any> TresolveDependency(KClass<T> klass)Resolves dependencies to T objects. RepositoryFactorycreateRepositoryFactory(User user)Create a RepositoryFactory for the given User. Pluginget(User user)Creates a Plugin -
-
Constructor Detail
-
StreamOfflinePluginFactory
StreamOfflinePluginFactory(Context appContext, Set<String> ignoredChannelTypes, Boolean isLocalUnreadCountEnabled, Function0<Long> now)
- Parameters:
appContext- ContextignoredChannelTypes- Set of channel types that should be ignored by the offline plugin.isLocalUnreadCountEnabled- Whether the on-device unread count tracking is enabled.now- Function to get the current time in milliseconds.
-
StreamOfflinePluginFactory
StreamOfflinePluginFactory(Context appContext, Set<String> ignoredChannelTypes, Boolean isLocalUnreadCountEnabled)
- Parameters:
appContext- ContextignoredChannelTypes- Set of channel types that should be ignored by the offline plugin.isLocalUnreadCountEnabled- Whether the on-device unread count tracking is enabled.
-
StreamOfflinePluginFactory
StreamOfflinePluginFactory(Context appContext, Set<String> ignoredChannelTypes)
- Parameters:
appContext- ContextignoredChannelTypes- Set of channel types that should be ignored by the offline plugin.
-
-
Method Detail
-
resolveDependency
<T extends Any> T resolveDependency(KClass<T> klass)
Resolves dependencies to T objects.
-
createRepositoryFactory
RepositoryFactory createRepositoryFactory(User user)
Create a RepositoryFactory for the given User.
-
-
-
-