toggle menu
Cloudstream
cloudstream
switch theme
search in API
Cloudstream
/
com.lagradost.cloudstream3.ui.settings.testing
/
TestView
Test
View
class
TestView
@
JvmOverloads
constructor
(
context
:
Context
,
attrs
:
AttributeSet
?
=
null
,
defStyleAttr
:
Int
=
0
)
(
source
)
Members
Constructors
Test
View
Link copied to clipboard
@
JvmOverloads
constructor
(
context
:
Context
,
attrs
:
AttributeSet
?
=
null
,
defStyleAttr
:
Int
=
0
)
Types
Test
State
Link copied to clipboard
enum
TestState
:
Enum
<
TestView.TestState
>
Properties
main
Section
Link copied to clipboard
var
mainSection
:
View
?
main
Section
Header
Link copied to clipboard
var
mainSectionHeader
:
TextView
?
main
Section
Text
Link copied to clipboard
var
mainSectionText
:
TextView
?
play
Pause
Button
Link copied to clipboard
var
playPauseButton
:
<Error class: unknown class>
?
state
Listener
Link copied to clipboard
var
stateListener
:
(
TestView.TestState
)
->
Unit
tests
Failed
Section
Link copied to clipboard
var
testsFailedSection
:
View
?
tests
Failed
Section
Text
Link copied to clipboard
var
testsFailedSectionText
:
TextView
?
tests
Passed
Section
Link copied to clipboard
var
testsPassedSection
:
View
?
tests
Passed
Section
Text
Link copied to clipboard
var
testsPassedSectionText
:
TextView
?
total
Progress
Bar
Link copied to clipboard
var
totalProgressBar
:
<Error class: unknown class>
?
Functions
set
Main
Header
Link copied to clipboard
fun
setMainHeader
(
@
StringRes
header
:
Int
)
set
On
Failed
Click
Link copied to clipboard
fun
setOnFailedClick
(
listener
:
<Error class: unknown class>
)
set
On
Main
Click
Link copied to clipboard
fun
setOnMainClick
(
listener
:
<Error class: unknown class>
)
set
On
Passed
Click
Link copied to clipboard
fun
setOnPassedClick
(
listener
:
<Error class: unknown class>
)
set
On
Play
Button
Listener
Link copied to clipboard
fun
setOnPlayButtonListener
(
listener
:
(
TestView.TestState
)
->
Unit
)
set
Progress
Link copied to clipboard
fun
setProgress
(
passed
:
Int
,
failed
:
Int
,
total
:
Int
?
)
set
State
Link copied to clipboard
fun
setState
(
newState
:
TestView.TestState
)