ariane/app/src/main/java/oppen/tva/io/history/CacheInterface.kt

14 lines
354 B
Kotlin

package oppen.tva.io.history
import android.content.Context
interface CacheInterface {
fun getTabs(onTabs: (tabs: MutableList<Tab>, activeIndex: Int)-> Unit)
fun update(tabs: List<Tab>, activeIndex: Int)
companion object{
fun default(context: Context): CacheInterface{
return SimplePrefsCache(context)
}
}
}