StatePluginConfig

data class StatePluginConfig @JvmOverloads constructor(val backgroundSyncEnabled: Boolean = true, val userPresence: Boolean = true, val syncMaxThreshold: TimeDuration = TimeDuration.hours(12), val now: () -> Long = { System.currentTimeMillis() }, val messageLimitConfig: MessageLimitConfig = MessageLimitConfig())

Provides a configuration for io.getstream.chat.android.state.plugin.internal.StatePlugin.

Parameters

backgroundSyncEnabled

Whether the SDK should perform background sync if some queries fail.

userPresence

Whether the SDK should receive user presence changes.

syncMaxThreshold

The maximum time allowed for data to synchronize. If not synced within this limit, the SDK deletes it.

now

A function that provides the current time in milliseconds.

messageLimitConfig

Configuration for message limits in channels.

Constructors

Link copied to clipboard
constructor(backgroundSyncEnabled: Boolean = true, userPresence: Boolean = true, syncMaxThreshold: TimeDuration = TimeDuration.hours(12), now: () -> Long = { System.currentTimeMillis() }, messageLimitConfig: MessageLimitConfig = MessageLimitConfig())

Properties

Link copied to clipboard
Link copied to clipboard
val now: () -> Long
Link copied to clipboard
Link copied to clipboard
val userPresence: Boolean = true