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() })

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.

Constructors

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

Properties

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