ConnectedSession

org.terminal21.client.ConnectedSession
class ConnectedSession(val session: Session, encoding: UiElementEncoding, val serverUrl: String, sessionsService: SessionsService, onCloseHandler: () => Unit)

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def add(es: UiElement*): Unit
def addEventHandler(key: String, handler: EventHandler): Unit
def clear(): Unit
def click(e: UiElement): Unit
def isClosed: Boolean

Attributes

Returns

true if user closed the session via the close button

def isLeaveSessionOpen: Boolean

Doesn't close the session upon exiting. In the UI the session seems active but events are not working because the event handlers are not available.

Doesn't close the session upon exiting. In the UI the session seems active but events are not working because the event handlers are not available.

Attributes

def render(): Unit
def uiUrl: String

Waits till user closes the session by clicking the session close [X] button.

Waits till user closes the session by clicking the session close [X] button.

Attributes

final def waitTillUserClosesSessionOr(condition: => Boolean): Unit

Waits till user closes the session or a custom condition becomes true

Waits till user closes the session or a custom condition becomes true

Value parameters

condition

if true then this returns otherwise it waits.

Attributes

Concrete fields

val serverUrl: String
val session: Session