Companion

Properties

Link copied to clipboard

A Session object, the default session object of the app.

Functions

Link copied to clipboard
fun fromPartition(partition: String, options: FromPartitionOptions = definedExternally): Session

A session instance from partition string. When there is an existing Session with the same partition, it will be returned; otherwise a new Session instance will be created with options.

Link copied to clipboard
fun fromPath(path: String, options: FromPathOptions = definedExternally): Session

A session instance from the absolute path as specified by the path string. When there is an existing Session with the same absolute path, it will be returned; otherwise a new Session instance will be created with options. The call will throw an error if the path is not an absolute path. Additionally, an error will be thrown if an empty string is provided.