LiveSessionResumptionUpdate

@PublicPreviewAPI
class LiveSessionResumptionUpdate : LiveServerMessage


An update of the session resumption state.

This message is only sent if SessionResumptionConfig was set in the session setup.

Summary

Public constructors

LiveSessionResumptionUpdate(
    newHandle: String?,
    resumable: Boolean?,
    lastConsumedClientMessageIndex: Int?
)

Public properties

Int?

The index of the last client message that is included in the state represented by this update.

String?

The new handle that represents the state that can be resumed.

Boolean?

Indicates if the session can be resumed at this point.

Public constructors

LiveSessionResumptionUpdate

LiveSessionResumptionUpdate(
    newHandle: String? = null,
    resumable: Boolean? = null,
    lastConsumedClientMessageIndex: Int? = null
)

Public properties

lastConsumedClientMessageIndex

val lastConsumedClientMessageIndexInt?

The index of the last client message that is included in the state represented by this update.

newHandle

val newHandleString?

The new handle that represents the state that can be resumed. Empty if resumable is false.

resumable

val resumableBoolean?

Indicates if the session can be resumed at this point.