Package com.lagradost.cloudstream3.ui.result

Types

ActorAdaptor
Link copied to clipboard
class ActorAdaptor : RecyclerView.Adapter<RecyclerView.ViewHolder>
ActorDiffCallback
Link copied to clipboard
AutoResume
Link copied to clipboard
data class AutoResume(season: Int?, episode: Int?, id: Int?, startAction: Int)
CurrentSynced
Link copied to clipboard
data class CurrentSynced(name: String, idPrefix: String, isSynced: Boolean, hasAccount: Boolean, icon: Int?)
DiffCallback
Link copied to clipboard
class DiffCallback<T>(oldList: List<T>, newList: List<T>) : DiffUtil.Callback
EpisodeAdapter
Link copied to clipboard
class EpisodeAdapter(hasDownloadSupport: Boolean, clickCallback: (EpisodeClickEvent) -> Unit, downloadClickCallback: (DownloadClickEvent) -> Unit) : RecyclerView.Adapter<RecyclerView.ViewHolder>
EpisodeClickEvent
Link copied to clipboard
data class EpisodeClickEvent(action: Int, data: ResultEpisode)
EpisodeRange
Link copied to clipboard
data class EpisodeRange(startIndex: Int, length: Int, startEpisode: Int, endEpisode: Int)
This starts at 1
ExtractedTrailerData
Link copied to clipboard
data class ExtractedTrailerData(mirros: List<ExtractorLink>, subtitles: List<SubtitleFile>)
ImageAdapter
Link copied to clipboard
class ImageAdapter(layout: Int, clickCallback: (Int) -> Unit?, nextFocusUp: Int?, nextFocusDown: Int?) : RecyclerView.Adapter<RecyclerView.ViewHolder>
LinearListLayout
Link copied to clipboard
open class LinearListLayout(context: Context?) : LinearLayoutManager
LinkLoadingResult
Link copied to clipboard
data class LinkLoadingResult(links: List<ExtractorLink>, subs: List<SubtitleData>)
LinkProgress
Link copied to clipboard
data class LinkProgress(linksLoaded: Int, subsLoaded: Int)
ResultData
Link copied to clipboard
data class ResultData(url: String, tags: List<String>, actors: List<ActorData>?, actorsText: UiText?, comingSoon: Boolean, backgroundPosterUrl: String?, title: String, syncData: Map<String, String>, posterImage: UiImage?, posterBackgroundImage: UiImage?, plotText: UiText, apiName: UiText, ratingText: UiText?, vpnText: UiText?, metaText: UiText?, durationText: UiText?, onGoingText: UiText?, noEpisodesFoundText: UiText?, titleText: UiText, typeText: UiText, yearText: UiText?, nextAiringDate: UiText?, nextAiringEpisode: UiText?, plotHeaderText: UiText)
ResultDiffCallback
Link copied to clipboard
class ResultDiffCallback(oldList: List<ResultEpisode>, newList: List<ResultEpisode>) : DiffUtil.Callback
ResultEpisode
Link copied to clipboard
data class ResultEpisode(headerName: String, name: String?, poster: String?, episode: Int, seasonIndex: Int?, season: Int?, data: String, apiName: String, id: Int, index: Int, position: Long, duration: Long, rating: Int?, description: String?, isFiller: Boolean?, tvType: TvType, parentId: Int, videoWatchState: VideoWatchState)
ResultFragment
Link copied to clipboard
open class ResultFragment : ResultTrailerPlayer
ResultFragmentPhone
Link copied to clipboard
class ResultFragmentPhone : ResultFragment
ResultFragmentTv
Link copied to clipboard
class ResultFragmentTv : ResultFragment
ResultTrailerPlayer
Link copied to clipboard
open class ResultTrailerPlayer : FullScreenPlayer, PanelsChildGestureRegionObserver.GestureRegionsListener, IOnBackPressed
ResultViewModel2
Link copied to clipboard
class ResultViewModel2 : ViewModel
ResumeProgress
Link copied to clipboard
data class ResumeProgress(progress: Int, maxProgress: Int, progressLeft: UiText)
ResumeWatchingStatus
Link copied to clipboard
data class ResumeWatchingStatus(progress: ResumeProgress?, isMovie: Boolean, result: ResultEpisode)
SelectAdaptor
Link copied to clipboard
class SelectAdaptor(callback: (Any) -> Unit) : RecyclerView.Adapter<RecyclerView.ViewHolder>
SelectData
Link copied to clipboard
typealias SelectData = Pair<UiText?, Any>
SelectDataCallback
Link copied to clipboard
class SelectDataCallback(oldList: List<SelectData>, newList: List<SelectData>) : DiffUtil.Callback
SelectPopup
Link copied to clipboard
sealed class SelectPopup
SyncViewModel
Link copied to clipboard
class SyncViewModel : ViewModel
UiImage
Link copied to clipboard
sealed class UiImage
UiText
Link copied to clipboard
sealed class UiText
VideoWatchState
Link copied to clipboard
enum VideoWatchState : Enum<VideoWatchState>
Future proofed way to mark episodes as watched

Functions

buildResultEpisode
Link copied to clipboard
fun buildResultEpisode(headerName: String, name: String? = null, poster: String? = null, episode: Int, seasonIndex: Int? = null, season: Int? = null, data: String, apiName: String, id: Int, index: Int, rating: Int? = null, description: String? = null, isFiller: Boolean? = null, tvType: TvType, parentId: Int): ResultEpisode
callback
Link copied to clipboard
fun SelectPopup.callback(index: Int?)
getDisplayPosition
Link copied to clipboard
fun ResultEpisode.getDisplayPosition(): Long
getOptions
Link copied to clipboard
fun SelectPopup.getOptions(context: Context): List<String>
getRealPosition
Link copied to clipboard
fun ResultEpisode.getRealPosition(): Long
getTitle
Link copied to clipboard
fun SelectPopup.getTitle(context: Context): String
getWatchProgress
Link copied to clipboard
fun ResultEpisode.getWatchProgress(): Float
0f-1f
img
Link copied to clipboard
fun img(@DrawableRes() drawable: Int): UiImage
fun img(url: String, headers: Map<String, String>? = null, @DrawableRes() errorDrawable: Int? = null): UiImage
@JvmName(name = imgNull)
fun img(url: String?, headers: Map<String, String>? = null, @DrawableRes() errorDrawable: Int? = null): UiImage?
setImage
Link copied to clipboard
fun ImageView?.setImage(value: UiImage?, fadeIn: Boolean = true)
setImageDrawable
Link copied to clipboard
fun ImageView?.setImageDrawable(value: UiImage.Drawable)
setImageImage
Link copied to clipboard
fun ImageView?.setImageImage(value: UiImage.Image, fadeIn: Boolean = true)
setLinearListLayout
Link copied to clipboard
fun RecyclerView?.setLinearListLayout(isHorizontal: Boolean = true)
setText
Link copied to clipboard
fun TextView?.setText(text: Some<UiText>?)
fun TextView?.setText(text: UiText?)
setTextHtml
Link copied to clipboard
fun TextView?.setTextHtml(text: Some<UiText>?)
fun TextView?.setTextHtml(text: UiText?)
toResultData
Link copied to clipboard
fun LoadResponse.toResultData(repo: APIRepository): ResultData
transformResult
Link copied to clipboard
fun SelectPopup.transformResult(input: Int?): Int?
txt
Link copied to clipboard
fun txt(status: DubStatus?): UiText?
fun txt(value: String): UiText
@JvmName(name = txtNull)
fun txt(value: String?): UiText?
fun txt(@StringRes() resId: Int, vararg args: Any): UiText
@JvmName(name = txtNull)
fun txt(@StringRes() resId: Int?, vararg args: Any?): UiText?

Properties

ACTION_CHROME_CAST_EPISODE
Link copied to clipboard
const val ACTION_CHROME_CAST_EPISODE: Int = 4
ACTION_CHROME_CAST_MIRROR
Link copied to clipboard
const val ACTION_CHROME_CAST_MIRROR: Int = 5
ACTION_CLICK_DEFAULT
Link copied to clipboard
const val ACTION_CLICK_DEFAULT: Int = 11
ACTION_COPY_LINK
Link copied to clipboard
const val ACTION_COPY_LINK: Int = 9
ACTION_DOWNLOAD_EPISODE
Link copied to clipboard
const val ACTION_DOWNLOAD_EPISODE: Int = 6
ACTION_DOWNLOAD_EPISODE_SUBTITLE
Link copied to clipboard
const val ACTION_DOWNLOAD_EPISODE_SUBTITLE: Int = 13
ACTION_DOWNLOAD_EPISODE_SUBTITLE_MIRROR
Link copied to clipboard
const val ACTION_DOWNLOAD_EPISODE_SUBTITLE_MIRROR: Int = 14
ACTION_DOWNLOAD_MIRROR
Link copied to clipboard
const val ACTION_DOWNLOAD_MIRROR: Int = 7
ACTION_MARK_AS_WATCHED
Link copied to clipboard
const val ACTION_MARK_AS_WATCHED: Int = 18
ACTION_PLAY_EPISODE_IN_BROWSER
Link copied to clipboard
const val ACTION_PLAY_EPISODE_IN_BROWSER: Int = 3
ACTION_PLAY_EPISODE_IN_MPV
Link copied to clipboard
const val ACTION_PLAY_EPISODE_IN_MPV: Int = 17
ACTION_PLAY_EPISODE_IN_PLAYER
Link copied to clipboard
const val ACTION_PLAY_EPISODE_IN_PLAYER: Int = 1
ACTION_PLAY_EPISODE_IN_VLC_PLAYER
Link copied to clipboard
const val ACTION_PLAY_EPISODE_IN_VLC_PLAYER: Int = 2
ACTION_PLAY_EPISODE_IN_WEB_VIDEO
Link copied to clipboard
const val ACTION_PLAY_EPISODE_IN_WEB_VIDEO: Int = 16
ACTION_RELOAD_EPISODE
Link copied to clipboard
const val ACTION_RELOAD_EPISODE: Int = 8
ACTION_SHOW_DESCRIPTION
Link copied to clipboard
const val ACTION_SHOW_DESCRIPTION: Int = 15
ACTION_SHOW_OPTIONS
Link copied to clipboard
const val ACTION_SHOW_OPTIONS: Int = 10
ACTION_SHOW_TOAST
Link copied to clipboard
const val ACTION_SHOW_TOAST: Int = 12
IMAGE_CLICK
Link copied to clipboard
const val IMAGE_CLICK: Int = 0
IMAGE_LONG_CLICK
Link copied to clipboard
const val IMAGE_LONG_CLICK: Int = 1
START_ACTION_LOAD_EP
Link copied to clipboard
const val START_ACTION_LOAD_EP: Int = 2
START_ACTION_RESUME_LATEST
Link copied to clipboard
const val START_ACTION_RESUME_LATEST: Int = 1