-
public final class SessionLocalKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static <ERROR CLASS>SessionLocal
-
Method Summary
Modifier and Type Method Description final <ERROR CLASS>getSessionLocal()CompositionLocal for the Session currently provided by SessionScope final static UnitSessionScope(Session session, Function1<Session, Unit> content)Wraps content with a CompositionLocalProvider which allows the current Session to be accessed through the SessionLocal composition local, as well as the session's room object through the RoomLocal composition local. final static SessionrequireSession(Session session)Returns the session, or if null/no-arg, the currently provided SessionLocal. -
-
Method Detail
-
getSessionLocal
final <ERROR CLASS> getSessionLocal()
CompositionLocal for the Session currently provided by SessionScope
-
SessionScope
@Composable() final static Unit SessionScope(Session session, Function1<Session, Unit> content)
Wraps content with a CompositionLocalProvider which allows the current Session to be accessed through the SessionLocal composition local, as well as the session's room object through the RoomLocal composition local.
-
requireSession
@Composable() final static Session requireSession(Session session)
Returns the session, or if null/no-arg, the currently provided SessionLocal.
-
-
-
-