JetpackAppState

class JetpackAppState(val isUserLoggedIn: Boolean, val userProfilePictureUri: String?, val windowSizeClass: WindowSizeClass, val crashReporter: CrashReporter, coroutineScope: CoroutineScope, networkUtils: NetworkUtils)

App-wide state that is not navigation.

Navigation state deliberately lives outside this class. It is created inside the signed-in and signed-out branches of JetpackApp so that each has its own back stacks, and so that signing in or out discards the other branch's history rather than leaving it to be returned to.

Parameters

coroutineScope

Scope backing isOffline.

networkUtils

Source of connectivity state.

Constructors

Link copied to clipboard
constructor(isUserLoggedIn: Boolean, userProfilePictureUri: String?, windowSizeClass: WindowSizeClass, crashReporter: CrashReporter, coroutineScope: CoroutineScope, networkUtils: NetworkUtils)

Properties

Link copied to clipboard

Used to report errors the user chooses to send.

Link copied to clipboard
val isOffline: StateFlow<Boolean>

Whether the device is currently offline.

Link copied to clipboard

Whether a user is signed in. Decides which navigation graph is shown.

Link copied to clipboard

Avatar shown in the top app bar.

Link copied to clipboard

The current window size class.