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
class AnimeRelation(val name: String, val animes: List<SAnime>)

A named group of anime, that are related to a specific anime entry

Link copied to clipboard
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, val memo: JsonObject = JsonObject(emptyMap()))

Class to represent a "hoster", i.e. a representation of a group of videos coming from the same source, for example a site which has multiple servers, each server with a list of videos.

Link copied to clipboard
open class HttpServer : NanoHTTPD

Class for NanoHTTPD server.

Link copied to clipboard
interface SAnime
Link copied to clipboard
class SAnimeEpisodeUpdate(val anime: SAnime, val episodes: List<SEpisode>)
Link copied to clipboard
class SAnimeSeasonUpdate(val anime: SAnime, val seasons: List<SAnime>)
Link copied to clipboard
interface SEpisode
Link copied to clipboard
open class ThumbnailInfo(val tileInfo: List<TileInfo>, val imageTileUrls: List<String>)

The class containing info for displaying thumbnails.

Link copied to clipboard
data class TileInfo(val imageIndex: Int, val timeMs: Long, val x: Int, val y: Int, val width: Int, val height: Int)

The class containing info for an image tile to be used as a thumbnail

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, val memo: JsonObject = JsonObject(emptyMap()))

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