toggle menu
Cloudstream
cloudstream
switch theme
search in API
Cloudstream
/
com.lagradost.cloudstream3.utils
/
SingleSelectionHelper
Single
Selection
Helper
object
SingleSelectionHelper
(
source
)
Members
Functions
show
Bottom
Dialog
Link copied to clipboard
fun
Activity
?
.
showBottomDialog
(
items
:
List
<
String
>
,
selectedIndex
:
Int
,
name
:
String
,
showApply
:
Boolean
,
dismissCallback
:
(
)
->
Unit
,
callback
:
(
Int
)
->
Unit
)
Only for a low amount of items
show
Bottom
Dialog
Instant
Link copied to clipboard
fun
Activity
.
showBottomDialogInstant
(
items
:
List
<
String
>
,
name
:
String
,
dismissCallback
:
(
)
->
Unit
,
callback
:
(
Int
)
->
Unit
)
:
<Error class: unknown class>
show
Bottom
Dialog
Text
Link copied to clipboard
fun
Activity
.
showBottomDialogText
(
title
:
String
,
text
:
Spanned
,
dismissCallback
:
(
)
->
Unit
)
show
Dialog
Link copied to clipboard
fun
Activity
?
.
showDialog
(
items
:
List
<
String
>
,
selectedIndex
:
Int
,
name
:
String
,
showApply
:
Boolean
,
dismissCallback
:
(
)
->
Unit
,
callback
:
(
Int
)
->
Unit
)
fun
Activity
?
.
showDialog
(
binding
:
<Error class: unknown class>
,
dialog
:
Dialog
,
items
:
List
<
String
>
,
selectedIndex
:
List
<
Int
>
,
name
:
String
,
showApply
:
Boolean
,
isMultiSelect
:
Boolean
,
callback
:
(
List
<
Int
>
)
->
Unit
,
dismissCallback
:
(
)
->
Unit
,
itemLayout
:
Int
=
R.layout.sort_bottom_single_choice
)
show
Multi
Dialog
Link copied to clipboard
fun
Activity
?
.
showMultiDialog
(
items
:
List
<
String
>
,
selectedIndex
:
List
<
Int
>
,
name
:
String
,
dismissCallback
:
(
)
->
Unit
,
callback
:
(
List
<
Int
>
)
->
Unit
)
show
Nginx
Text
Input
Dialog
Link copied to clipboard
fun
Activity
.
showNginxTextInputDialog
(
name
:
String
,
value
:
String
,
textInputType
:
Int
?
,
dismissCallback
:
(
)
->
Unit
,
callback
:
(
String
)
->
Unit
)
show
Option
Select
String
Res
Link copied to clipboard
fun
Activity
?
.
showOptionSelectStringRes
(
view
:
View
?
,
poster
:
String
?
,
options
:
List
<
Int
>
,
tvOptions
:
List
<
Int
>
=
listOf()
,
callback
:
(
Pair
<
Boolean
,
Int
>
)
->
Unit
)