StreamOfflinePluginFactory

class StreamOfflinePluginFactory @JvmOverloads constructor(appContext: Context, ignoredChannelTypes: Set<String> = emptySet(), isLocalUnreadCountEnabled: Boolean = false, now: () -> Long = { System.currentTimeMillis() }) : PluginFactory, RepositoryFactory.Provider

Implementation of PluginFactory that provides OfflinePlugin.

Parameters

appContext
ignoredChannelTypes

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. Useful for testing purposes.

Constructors

Link copied to clipboard
constructor(appContext: Context, ignoredChannelTypes: Set<String> = emptySet(), isLocalUnreadCountEnabled: Boolean = false, now: () -> Long = { System.currentTimeMillis() })

Functions

Link copied to clipboard

Create a RepositoryFactory for the given User.

Link copied to clipboard
open override fun get(user: User): Plugin

Creates a Plugin

Link copied to clipboard
open override fun <T : Any> resolveDependency(klass: KClass<T>): T?

Resolves dependencies to T objects.