Session

class Session : JsonStream.Streamable, UserAware

Represents a contiguous session in an application.

Properties

Link copied to clipboard
@get:NonNull
open var apiKey: String
Link copied to clipboard
@get:NonNull
open val app: App
Link copied to clipboard
@get:NonNull
open val device: Device
Link copied to clipboard
@get:NonNull
open var id: String
Link copied to clipboard
@get:NonNull
open var startedAt: Date
Link copied to clipboard
@get:NonNull
open val user: User

Functions

Link copied to clipboard
abstract fun getUser(): User
Link copied to clipboard
open fun setUser(@Nullable id: String, @Nullable email: String, @Nullable name: String)
Sets the user associated with the session.
Link copied to clipboard
open fun toStream(@NonNull writer: JsonStream)