mirror of https://git.sr.ht/~oppen/ariane
14 lines
354 B
Kotlin
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)
|
|
}
|
|
}
|
|
} |