Options
All
  • Public
  • Public/Protected
  • All
Menu

Class EpisodePage<T>

A page that will show the EpisodeEmbed.

Because often episodes are displayed in a page that is a slightly modified version of the anime overview page the EpisodePage will reuse the AnimePage when transitioning.

Supported transitions:

Type parameters

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private Optional _animePage

_animePage: EpisodeAnimePageLike<T>

backgroundPages

backgroundPages: Map<any, ServicePage<T>>

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

episodeBookmarked$

episodeBookmarked$: BehaviorSubject<boolean>

Private Optional epsWatchedSub

epsWatchedSub: rxjs.Subscription

Protected internalMemory

internalMemory: Namespace

memory

service

service: T

state

state: State<T>

Accessors

animePage

Methods

_load

  • _load(): Promise<void>

_unload

  • _unload(): Promise<void>

Protected assignMemory

Abstract 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

  • getBackgroundPage(id: any): ServicePage<T> | undefined

getEpisode

  • getEpisode(): Promise<Episode | undefined>

Abstract getEpisodeIndex

  • getEpisodeIndex(): Promise<number | undefined>

Abstract injectEmbed

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

injected

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

load

  • load(): Promise<void>

markEpisodeUnwatched

  • markEpisodeUnwatched(): Promise<void>

markEpisodeWatched

  • markEpisodeWatched(): Promise<void>

Abstract nextEpisodeButton

  • nextEpisodeButton(): Promise<SkipButton | undefined>

onEpisodeEnd

  • onEpisodeEnd(): Promise<void>

Abstract prevEpisodeButton

  • prevEpisodeButton(): Promise<SkipButton | undefined>

registerBackgroundPage

  • registerBackgroundPage(page: ServicePage<T>, id: any): void

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

Abstract showNextEpisode

  • showNextEpisode(): Promise<void>

Abstract showPrevEpisode

  • showPrevEpisode(): Promise<void>

transitionTo

unload

  • unload(): Promise<void>

Generated using TypeDoc