-
public final class StatePluginConfigProvides a configuration for io.getstream.chat.android.state.plugin.internal.StatePlugin.
-
-
Field Summary
Fields Modifier and Type Field Description private final BooleanbackgroundSyncEnabledprivate final BooleanuserPresenceprivate final BooleanisAutomaticSyncOnReconnectEnabledprivate final TimeDurationsyncMaxThresholdprivate final Function0<Long>nowprivate final MessageLimitConfigmessageLimitConfig
-
Constructor Summary
Constructors Constructor Description StatePluginConfig(Boolean backgroundSyncEnabled, Boolean userPresence, Boolean isAutomaticSyncOnReconnectEnabled, TimeDuration syncMaxThreshold, Function0<Long> now, MessageLimitConfig messageLimitConfig)StatePluginConfig(Boolean backgroundSyncEnabled, Boolean userPresence, Boolean isAutomaticSyncOnReconnectEnabled, TimeDuration syncMaxThreshold, Function0<Long> now)StatePluginConfig(Boolean backgroundSyncEnabled, Boolean userPresence, Boolean isAutomaticSyncOnReconnectEnabled, TimeDuration syncMaxThreshold)StatePluginConfig(Boolean backgroundSyncEnabled, Boolean userPresence, Boolean isAutomaticSyncOnReconnectEnabled)StatePluginConfig(Boolean backgroundSyncEnabled, Boolean userPresence)StatePluginConfig(Boolean backgroundSyncEnabled)StatePluginConfig()
-
Method Summary
Modifier and Type Method Description final BooleangetBackgroundSyncEnabled()final BooleangetUserPresence()final BooleangetIsAutomaticSyncOnReconnectEnabled()final TimeDurationgetSyncMaxThreshold()final Function0<Long>getNow()final MessageLimitConfiggetMessageLimitConfig()-
-
Constructor Detail
-
StatePluginConfig
StatePluginConfig(Boolean backgroundSyncEnabled, Boolean userPresence, Boolean isAutomaticSyncOnReconnectEnabled, TimeDuration syncMaxThreshold, Function0<Long> now, MessageLimitConfig messageLimitConfig)
- Parameters:
backgroundSyncEnabled- Controls whether the SDK performs background synchronization when push notifications are received.userPresence- Controls whether the SDK subscribes to and processes user presence events (online/offline status, last active time).isAutomaticSyncOnReconnectEnabled- Specifies if local data is updated with subscribing to web-socket events after reconnection.syncMaxThreshold- The maximum age threshold for pending local operations (channels, messages, reactions) before they are considered too old to retry and are discarded.now- A function that provides the current time in milliseconds since epoch (Unix timestamp).messageLimitConfig- Configuration that controls the maximum number of messages kept in memory for different channel types.
-
StatePluginConfig
StatePluginConfig(Boolean backgroundSyncEnabled, Boolean userPresence, Boolean isAutomaticSyncOnReconnectEnabled, TimeDuration syncMaxThreshold, Function0<Long> now)
- Parameters:
backgroundSyncEnabled- Controls whether the SDK performs background synchronization when push notifications are received.userPresence- Controls whether the SDK subscribes to and processes user presence events (online/offline status, last active time).isAutomaticSyncOnReconnectEnabled- Specifies if local data is updated with subscribing to web-socket events after reconnection.syncMaxThreshold- The maximum age threshold for pending local operations (channels, messages, reactions) before they are considered too old to retry and are discarded.now- A function that provides the current time in milliseconds since epoch (Unix timestamp).
-
StatePluginConfig
StatePluginConfig(Boolean backgroundSyncEnabled, Boolean userPresence, Boolean isAutomaticSyncOnReconnectEnabled, TimeDuration syncMaxThreshold)
- Parameters:
backgroundSyncEnabled- Controls whether the SDK performs background synchronization when push notifications are received.userPresence- Controls whether the SDK subscribes to and processes user presence events (online/offline status, last active time).isAutomaticSyncOnReconnectEnabled- Specifies if local data is updated with subscribing to web-socket events after reconnection.syncMaxThreshold- The maximum age threshold for pending local operations (channels, messages, reactions) before they are considered too old to retry and are discarded.
-
StatePluginConfig
StatePluginConfig(Boolean backgroundSyncEnabled, Boolean userPresence, Boolean isAutomaticSyncOnReconnectEnabled)
- Parameters:
backgroundSyncEnabled- Controls whether the SDK performs background synchronization when push notifications are received.userPresence- Controls whether the SDK subscribes to and processes user presence events (online/offline status, last active time).isAutomaticSyncOnReconnectEnabled- Specifies if local data is updated with subscribing to web-socket events after reconnection.
-
StatePluginConfig
StatePluginConfig(Boolean backgroundSyncEnabled, Boolean userPresence)
- Parameters:
backgroundSyncEnabled- Controls whether the SDK performs background synchronization when push notifications are received.userPresence- Controls whether the SDK subscribes to and processes user presence events (online/offline status, last active time).
-
StatePluginConfig
StatePluginConfig(Boolean backgroundSyncEnabled)
- Parameters:
backgroundSyncEnabled- Controls whether the SDK performs background synchronization when push notifications are received.
-
StatePluginConfig
StatePluginConfig()
-
-
Method Detail
-
getBackgroundSyncEnabled
final Boolean getBackgroundSyncEnabled()
-
getUserPresence
final Boolean getUserPresence()
-
getIsAutomaticSyncOnReconnectEnabled
final Boolean getIsAutomaticSyncOnReconnectEnabled()
-
getSyncMaxThreshold
final TimeDuration getSyncMaxThreshold()
-
getMessageLimitConfig
final MessageLimitConfig getMessageLimitConfig()
-
-
-
-