package com.aiosman.ravenow

import androidx.lifecycle.DefaultLifecycleObserver
import androidx.lifecycle.LifecycleOwner

object MainActivityLifecycle {
    var isForeground = false
}

class MainActivityLifecycleObserver : DefaultLifecycleObserver {
    override fun onStart(owner: LifecycleOwner) {
        MainActivityLifecycle.isForeground = true
    }

    override fun onPause(owner: LifecycleOwner) {
        MainActivityLifecycle.isForeground = false
    }
}