Package-level declarations

Types

Link copied to clipboard
class ActorAdaptor(nextFocusUpId: Int? = null, focusCallback: (View?) -> Unit = {})
Link copied to clipboard
data class AutoResume(val season: Int?, val episode: Int?, val id: Int?, val startAction: Int)
Link copied to clipboard
data class CheckDuplicateData(val name: String, val year: Int?, val syncData: Map<String, String>?)
Link copied to clipboard
data class CurrentSynced(val name: String, val idPrefix: String, val isSynced: Boolean, val hasAccount: Boolean, val icon: Int?)
Link copied to clipboard
class DiffCallback<T>(oldList: List<T>, newList: List<T>)
Link copied to clipboard
class EpisodeAdapter(hasDownloadSupport: Boolean, clickCallback: (EpisodeClickEvent) -> Unit, downloadClickCallback: (DownloadClickEvent) -> Unit)
Link copied to clipboard
data class EpisodeClickEvent(val action: Int, val data: ResultEpisode)
Link copied to clipboard
data class EpisodeRange(val startIndex: Int, val length: Int, val startEpisode: Int, val endEpisode: Int)

This starts at 1

Link copied to clipboard
data class ExtractedTrailerData(var mirros: List<ExtractorLink>, var subtitles: List<SubtitleFile> = emptyList())
Link copied to clipboard
data class ExtractorSubtitleLink(val name: String, val url: String, val referer: String, val headers: Map<String, String> = mapOf()) : IDownloadableMinimum
Link copied to clipboard
class ImageAdapter(val clickCallback: (Int) -> Unit? = null, val nextFocusUp: Int? = null, val nextFocusDown: Int? = null)
Link copied to clipboard
Link copied to clipboard
open class LinearListLayout(context: Context?)
Link copied to clipboard
data class LinkLoadingResult(val links: List<ExtractorLink>, val subs: List<SubtitleData>)
Link copied to clipboard
data class LinkProgress(val linksLoaded: Int, val subsLoaded: Int)
Link copied to clipboard
data class ResultData(val url: String, val tags: List<String>, val actors: List<ActorData>?, val actorsText: UiText?, val comingSoon: Boolean, val backgroundPosterUrl: String?, val title: String, var syncData: Map<String, String>, val posterImage: UiImage?, val posterBackgroundImage: UiImage?, val plotText: UiText, val apiName: UiText, val ratingText: UiText?, val contentRatingText: UiText?, val vpnText: UiText?, val metaText: UiText?, val durationText: UiText?, val onGoingText: UiText?, val noEpisodesFoundText: UiText?, val titleText: UiText, val typeText: UiText, val yearText: UiText?, val nextAiringDate: UiText?, val nextAiringEpisode: UiText?, val plotHeaderText: UiText)
Link copied to clipboard
Link copied to clipboard
data class ResultEpisode(val headerName: String, val name: String?, val poster: String?, val episode: Int, val seasonIndex: Int?, val season: Int?, val data: String, val apiName: String, val id: Int, val index: Int, val position: Long, val duration: Long, val rating: Int?, val description: String?, val isFiller: Boolean?, val tvType: TvType, val parentId: Int, val videoWatchState: VideoWatchState, val totalEpisodeIndex: Int? = null, val airDate: Long? = null, val runTime: Int? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class ResumeProgress(val progress: Int, val maxProgress: Int, val progressLeft: UiText)
Link copied to clipboard
data class ResumeWatchingStatus(val progress: ResumeProgress?, val isMovie: Boolean, val result: ResultEpisode)
Link copied to clipboard
class SelectAdaptor(val callback: (Any) -> Unit)
Link copied to clipboard
typealias SelectData = Pair<UiText?, Any>
Link copied to clipboard
class SelectDataCallback(oldList: List<SelectData>, newList: List<SelectData>)
Link copied to clipboard
sealed class SelectPopup
Link copied to clipboard
Link copied to clipboard
sealed class UiImage
Link copied to clipboard
sealed class UiText
Link copied to clipboard

Future proofed way to mark episodes as watched

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val ACTION_CLICK_DEFAULT: Int = 11
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val ACTION_MARK_AS_WATCHED: Int = 18
Link copied to clipboard

Ids >= 1000 are reserved for VideoClickActions

Link copied to clipboard
const val ACTION_RELOAD_EPISODE: Int = 8
Link copied to clipboard
Link copied to clipboard
const val ACTION_SHOW_OPTIONS: Int = 10
Link copied to clipboard
const val ACTION_SHOW_TOAST: Int = 12
Link copied to clipboard
const val FOCUS_INHERIT: Int
Link copied to clipboard
const val FOCUS_SELF: Int
Link copied to clipboard
const val IMAGE_CLICK: Int = 0
Link copied to clipboard
const val IMAGE_LONG_CLICK: Int = 1
Link copied to clipboard
const val START_ACTION_LOAD_EP: Int = 2
Link copied to clipboard
Link copied to clipboard
const val TV_EP_SIZE: Int = 400

Functions

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, totalEpisodeIndex: Int? = null, airDate: Long? = null, runTime: Int? = null): ResultEpisode
Link copied to clipboard
fun SelectPopup.callback(index: Int?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun img(bitmap: Bitmap): UiImage
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?
Link copied to clipboard
fun ImageView?.setImage(value: UiImage?, fadeIn: Boolean = true)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun ImageView?.setImageImage(value: UiImage.Image, fadeIn: Boolean = true)
Link copied to clipboard
fun <Error class: unknown class>?.setLinearListLayout(isHorizontal: Boolean = true, nextLeft: Int = FOCUS_INHERIT, nextRight: Int = FOCUS_INHERIT, nextUp: Int = FOCUS_INHERIT, nextDown: Int = FOCUS_INHERIT)
Link copied to clipboard
fun TextView?.setText(text: UiText?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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?