Add API to control online search
This commit is contained in:
@@ -4,5 +4,5 @@ import kotlinx.collections.immutable.ImmutableList
|
||||
import kotlinx.coroutines.flow.Flow
|
||||
|
||||
interface SearchableRepository<T : Searchable> {
|
||||
fun search(query: String): Flow<ImmutableList<T>>
|
||||
fun search(query: String, allowNetwork: Boolean): Flow<ImmutableList<T>>
|
||||
}
|
||||
@@ -5,5 +5,6 @@ abstract class SearchPluginContract {
|
||||
const val Search = "search"
|
||||
const val Root = "root"
|
||||
const val QueryParam = "query"
|
||||
const val AllowNetworkParam = "network"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user