toggle menu
Cloudstream
cloudstream
switch theme
search in API
Cloudstream
/
com.lagradost.cloudstream3.subtitles
/
SubtitleResource
Subtitle
Resource
class
SubtitleResource
(
source
)
A builder for subtitle files.
See also
Subtitle
Resource.
addUrl
Subtitle
Resource.
addFile
Members
Constructors
Subtitle
Resource
Link copied to clipboard
constructor
(
)
Types
Single
Subtitle
Resource
Link copied to clipboard
data
class
SingleSubtitleResource
(
val
name
:
String
?
,
val
url
:
String
,
val
origin
:
SubtitleOrigin
)
Functions
add
File
Link copied to clipboard
fun
addFile
(
file
:
File
,
name
:
String
?
=
null
)
add
Url
Link copied to clipboard
fun
addUrl
(
url
:
String
?
,
name
:
String
?
=
null
)
add
Zip
Url
Link copied to clipboard
suspend
fun
addZipUrl
(
url
:
String
,
nameGenerator
:
(
String
,
File
)
->
String
?
=
{ _, _ -> null }
)
download
File
Link copied to clipboard
fun
downloadFile
(
source
:
BufferedSource
)
:
File
get
Subtitles
Link copied to clipboard
fun
getSubtitles
(
)
:
List
<
SubtitleResource.SingleSubtitleResource
>