DataStoreHelper

Types

Link copied to clipboard
data class Account(val keyIndex: Int, val name: String, val customImage: String? = null, val defaultImageIndex: Int, val lockPin: String? = null)
Link copied to clipboard
data class BookmarkedData(val bookmarkedTime: Long, var id: Int?, val latestUpdatedTime: Long, val name: String, val url: String, val apiName: String, var type: TvType?, var posterUrl: String?, val year: Int?, val syncData: Map<String, String>? = null, var quality: SearchQuality? = null, var posterHeaders: Map<String, String>? = null, val plot: String? = null, val rating: Int? = null, val tags: List<String>? = null) : DataStoreHelper.LibrarySearchResponse
Link copied to clipboard
data class FavoritesData(val favoritesTime: Long, var id: Int?, val latestUpdatedTime: Long, val name: String, val url: String, val apiName: String, var type: TvType?, var posterUrl: String?, val year: Int?, val syncData: Map<String, String>? = null, var quality: SearchQuality? = null, var posterHeaders: Map<String, String>? = null, val plot: String? = null, val rating: Int? = null, val tags: List<String>? = null) : DataStoreHelper.LibrarySearchResponse
Link copied to clipboard
abstract class LibrarySearchResponse(var id: Int?, val latestUpdatedTime: Long, val name: String, val url: String, val apiName: String, var type: TvType?, var posterUrl: String?, val year: Int?, val syncData: Map<String, String>?, var quality: SearchQuality?, var posterHeaders: Map<String, String>?, val plot: String? = null, val rating: Int? = null, val tags: List<String>? = null) : SearchResponse

Used to display notifications on new episodes and posters in library.

Link copied to clipboard
data class PosDur(val position: Long, val duration: Long)
Link copied to clipboard
data class ResumeWatchingResult(val name: String, val url: String, val apiName: String, var type: TvType? = null, var posterUrl: String?, val watchPos: DataStoreHelper.PosDur?, var id: Int?, val parentId: Int?, val episode: Int?, val season: Int?, val isFromDownload: Boolean, var quality: SearchQuality? = null, var posterHeaders: Map<String, String>? = null) : SearchResponse
Link copied to clipboard
data class SubscribedData(val subscribedTime: Long, val lastSeenEpisodeCount: Map<DubStatus, Int?>, var id: Int?, val latestUpdatedTime: Long, val name: String, val url: String, val apiName: String, var type: TvType?, var posterUrl: String?, val year: Int?, val syncData: Map<String, String>? = null, var quality: SearchQuality? = null, var posterHeaders: Map<String, String>? = null, val plot: String? = null, val rating: Int? = null, val tags: List<String>? = null) : DataStoreHelper.LibrarySearchResponse

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Get or set the current account homepage. Setting this does not automatically reload the homepage.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val profileImages: <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
const val TAG: String

Functions

Link copied to clipboard
fun addSync(id: Int, idPrefix: String, url: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

A datastore wide account for future implementations of a multiple account system

Link copied to clipboard

Gets the current selected account (or default), may return null if context is null and the user is using the default account

Link copied to clipboard
Link copied to clipboard
fun getDub(id: Int): DubStatus?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun getSync(id: Int, idPrefixes: List<String>): List<String?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun removeLastWatched(parentId: Int?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setDub(id: Int, status: DubStatus)
Link copied to clipboard
Link copied to clipboard
fun setLastWatched(parentId: Int?, episodeId: Int?, episode: Int?, season: Int?, isFromDownload: Boolean = false, updateTime: Long? = null)
Link copied to clipboard
fun setResultEpisode(id: Int, value: Int?)
Link copied to clipboard
fun setResultSeason(id: Int, value: Int?)
Link copied to clipboard
fun setResultWatchState(id: Int?, status: Int)
Link copied to clipboard
Link copied to clipboard
fun setVideoWatchState(id: Int?, watchState: VideoWatchState)
Link copied to clipboard
fun setViewPos(id: Int?, pos: Long, dur: Long)
Link copied to clipboard
fun Int.toYear(): Date
Link copied to clipboard

Set new seen episodes and update time