Package-level declarations

Required data classes to interact with Aniyomi.

Types

Link copied to clipboard
sealed class AnimeFilter<T>(val name: String, var state: T)
Link copied to clipboard
data class AnimeFilterList(val list: List<AnimeFilter<*>>) : List<AnimeFilter<*>>
Link copied to clipboard
data class AnimesPage(val animes: List<SAnime>, val hasNextPage: Boolean)
Link copied to clipboard

Define the update strategy for a single SAnime. The strategy used will only take effect on the library update.

Link copied to clipboard
Link copied to clipboard

Define what type of content the anime should fetch. The fetch type for a SAnime will not update after it's been initialized to either Seasons or Episodes

Link copied to clipboard
class Hoster(val hosterUrl: String = "", val hosterName: String = "", val videoList: List<Video>? = null, val internalData: String = "", val lazy: Boolean = false)
Link copied to clipboard
interface SAnime
Link copied to clipboard
interface SEpisode
Link copied to clipboard
data class TimeStamp(val start: Double, val end: Double, val name: String, val type: ChapterType = ChapterType.Other)

A class defining a timestamp. Displayed as video chapters in the app.

Link copied to clipboard
data class Track(val url: String, val lang: String)

A sub/dub track.

Link copied to clipboard
data class Video(val videoUrl: String = "", val videoTitle: String = "", val resolution: Int? = null, val bitrate: Int? = null, val headers: Headers? = null, val preferred: Boolean = false, val subtitleTracks: List<Track> = emptyList(), val audioTracks: List<Track> = emptyList(), val timestamps: List<TimeStamp> = emptyList(), val mpvArgs: List<Pair<String, String>> = emptyList(), val ffmpegStreamArgs: List<Pair<String, String>> = emptyList(), val ffmpegVideoArgs: List<Pair<String, String>> = emptyList(), val internalData: String = "", val initialized: Boolean = false)

The instance that contains the data needed to watch a video.