Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KitsuEpisodePage

Hierarchy

Implements

Index

Constructors

constructor

Properties

backgroundPages

backgroundPages: Map<any, ServicePage<Kitsu>>

ServicePages which are running as a child of the current page.

episodeBookmarked$

episodeBookmarked$: BehaviorSubject<boolean>

Protected internalMemory

internalMemory: Namespace

memory

service

service: Kitsu

state

state: State<Kitsu>

Accessors

animePage

Methods

_load

  • _load(): Promise<void>

_unload

  • _unload(): Promise<void>

Protected assignMemory

buildAnimePage

buildEmbed

  • buildEmbed(): Promise<Element>

forget

  • forget(key: string, forgetNamespace?: undefined | false | true): void
  • Delete the value of the provided namespace key.

    Parameters

    • key: string
    • Optional forgetNamespace: undefined | false | true

      if true this operation behaves like Memory.resetMemory with the key as an argument. Otherwise it merely removes the specified namespace.

    Returns void

getBackgroundPage

getEpisode

  • getEpisode(): Promise<Episode | undefined>

getEpisodeIndex

  • getEpisodeIndex(): Promise<number | undefined>

injectEmbed

  • injectEmbed(embed: Element): Promise<any>

injected

  • injected(el: Node, ns?: undefined | string): void

load

  • load(): Promise<void>

markEpisodeUnwatched

  • markEpisodeUnwatched(): Promise<void>

markEpisodeWatched

  • markEpisodeWatched(): Promise<void>

nextEpisodeButton

  • nextEpisodeButton(): Promise<SkipButton | undefined>

onEpisodeEnd

  • onEpisodeEnd(): Promise<void>

prevEpisodeButton

  • prevEpisodeButton(): Promise<SkipButton | undefined>

registerBackgroundPage

reload

  • reload(): Promise<void>

remember

  • remember(key: string, value: any): void
  • Store the given value under the namespace key.

    Parameters

    • key: string

      Namespaces are separated by a dot

    • value: any

    Returns void

removeInjected

  • removeInjected(...namespaces: string[]): void
  • Remove all elements from the given namespaces. Removing elements of a namespace also removes all elements in namespaces further down.

    If no namespaces provided removes all elements.

    Parameters

    • Rest ...namespaces: string[]

    Returns void

resetMemory

  • resetMemory(...namespaces: string[]): void
  • Reset the given namespaces and all their children.

    When called with no arguments this flushes the entire memory (i.e. deletes all keys).

    see

    Memory.forget to remove a specific namespace without affecting its children.

    Parameters

    • Rest ...namespaces: string[]

    Returns void

resetPage

  • resetPage(): void

showNextEpisode

  • showNextEpisode(epIndex?: undefined | number): Promise<void>

showPrevEpisode

  • showPrevEpisode(epIndex?: undefined | number): Promise<void>

transitionTo

unload

  • unload(): Promise<void>

Generated using TypeDoc