Package-level declarations

Types

Link copied to clipboard
class ActorAdaptor(nextFocusUpId: Int? = null, focusCallback: (View?) -> Unit = {}) : RecyclerView.Adapter<RecyclerView.ViewHolder>
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>) : DiffUtil.Callback
Link copied to clipboard
class EpisodeAdapter(hasDownloadSupport: Boolean, clickCallback: (EpisodeClickEvent) -> Unit, downloadClickCallback: (DownloadClickEvent) -> Unit) : RecyclerView.Adapter<RecyclerView.ViewHolder>
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
class ImageAdapter(val clickCallback: (Int) -> Unit? = null, val nextFocusUp: Int? = null, val nextFocusDown: Int? = null) : RecyclerView.Adapter<RecyclerView.ViewHolder>
Link copied to clipboard
Link copied to clipboard
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)
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
Link copied to clipboard
typealias SelectData = Pair<UiText?, Any>
Link copied to clipboard
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
const val ACTION_COPY_LINK: Int = 9
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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_LARGE: Int = 400
Link copied to clipboard
const val TV_EP_SIZE_SMALL: Int = 300

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): 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
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
fun ImageView?.setImageImage(value: UiImage.Image, fadeIn: Boolean = true)
Link copied to clipboard
fun RecyclerView?.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?