package ru.forbion.f7cloud.core.designsystem

/**
 * Updated from [F7MobileApp] via ProcessLifecycleOwner.
 * Background polling loops should check this before hitting the network.
 */
object AppForegroundTracker {
    @Volatile
    var isForeground: Boolean = true
        private set

    fun setForeground(foreground: Boolean) {
        isForeground = foreground
    }
}
