Cloudstream
Toggle table of contents
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
Cloudstream
App
/
com.lagradost.cloudstream3.ui.search
/
SearchViewModel
Search
View
Model
class
SearchViewModel
:
ViewModel
(
source
)
Members
Constructors
Search
View
Model
Link copied to clipboard
constructor
(
)
Properties
current
History
Link copied to clipboard
val
currentHistory
:
LiveData
<
List
<
SearchHistoryItem
>
>
current
Search
Link copied to clipboard
val
currentSearch
:
LiveData
<
Map
<
String
,
ExpandableSearchList
>
>
last
Query
Link copied to clipboard
var
lastQuery
:
String
?
search
Response
Link copied to clipboard
val
searchResponse
:
LiveData
<
Resource
<
ExpandableSearchList
>
>
Functions
add
Closeable
Link copied to clipboard
open
fun
addCloseable
(
closeable
:
AutoCloseable
)
fun
addCloseable
(
key
:
String
,
closeable
:
AutoCloseable
)
clear
Search
Link copied to clipboard
fun
clearSearch
(
)
expand
And
Return
Link copied to clipboard
suspend
fun
expandAndReturn
(
name
:
String
)
:
HomeViewModel.ExpandableHomepageList
?
get
Closeable
Link copied to clipboard
fun
<
T
:
AutoCloseable
>
getCloseable
(
key
:
String
)
:
T
?
on
Cleared
Link copied to clipboard
protected
open
fun
onCleared
(
)
reload
Repos
Link copied to clipboard
fun
reloadRepos
(
)
search
And
Cancel
Link copied to clipboard
fun
searchAndCancel
(
query
:
String
,
providersActive
:
Set
<
String
>
=
setOf()
,
ignoreSettings
:
Boolean
=
false
,
isQuickSearch
:
Boolean
=
false
)
update
History
Link copied to clipboard
fun
updateHistory
(
)
:
Job