defaultHandler

fun defaultHandler(maxGroupTimeMillis: Long = DEFAULT_MAX_GROUP_TIME_MILLIS): MessagePositionHandler

The default implementation of the MessagePositionHandler interface which can be taken as a reference when implementing a custom one.

Return

The default implementation of MessagePositionHandler.

Parameters

maxGroupTimeMillis

The maximum time difference (in milliseconds) between consecutive messages from the same user before they are split into separate groups. Defaults to DEFAULT_MAX_GROUP_TIME_MILLIS (60 seconds).