-
public final class ConfigProvides a configuration for io.getstream.chat.android.offline.plugin.internal.OfflinePlugin.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanbackgroundSyncEnabledprivate final BooleanuserPresenceprivate final BooleanpersistenceEnabledprivate final UploadAttachmentsNetworkTypeuploadAttachmentsNetworkType
-
Constructor Summary
Constructors Constructor Description Config(Boolean backgroundSyncEnabled, Boolean userPresence, Boolean persistenceEnabled, UploadAttachmentsNetworkType uploadAttachmentsNetworkType)
-
Method Summary
Modifier and Type Method Description final BooleangetBackgroundSyncEnabled()final BooleangetUserPresence()final BooleangetPersistenceEnabled()final UploadAttachmentsNetworkTypegetUploadAttachmentsNetworkType()-
-
Constructor Detail
-
Config
Config(Boolean backgroundSyncEnabled, Boolean userPresence, Boolean persistenceEnabled, UploadAttachmentsNetworkType uploadAttachmentsNetworkType)
- Parameters:
backgroundSyncEnabled- Whether the SDK should perform background sync if some queries fail.userPresence- Whether the SDK should receive user presence changes.persistenceEnabled- Whether the data should be stored in the DB.uploadAttachmentsNetworkType- An enumeration of various network types used as a constraint inside upload attachments worker.
-
-
Method Detail
-
getBackgroundSyncEnabled
final Boolean getBackgroundSyncEnabled()
-
getUserPresence
final Boolean getUserPresence()
-
getPersistenceEnabled
final Boolean getPersistenceEnabled()
-
getUploadAttachmentsNetworkType
final UploadAttachmentsNetworkType getUploadAttachmentsNetworkType()
-
-
-
-