UNPKG

@project-sunbird/sunbird-epub-player-v9

Version:

The Epub player library is powered by Angular. This player is primarily designed to be used on Sunbird consumption platforms _(mobile app, web portal, offline desktop app)_ to drive reusability and maintainability, hence reducing the redundant development

70 lines (69 loc) 3 kB
import { EventEmitter, OnInit, OnDestroy, ElementRef, AfterViewInit, Renderer2, OnChanges, SimpleChanges } from '@angular/core'; import { ViwerService } from './services/viewerService/viwer-service'; import { PlayerConfig } from './sunbird-epub-player.interface'; import { EpubPlayerService } from './sunbird-epub-player.service'; import { epubPlayerConstants } from './sunbird-epub.constant'; import { ErrorService } from '@project-sunbird/sunbird-player-sdk-v9'; import { UtilService } from './services/utilService/util.service'; import * as i0 from "@angular/core"; export declare class EpubPlayerComponent implements OnInit, OnChanges, OnDestroy, AfterViewInit { viwerService: ViwerService; private epubPlayerService; errorService: ErrorService; utilService: UtilService; private renderer2; fromConst: typeof epubPlayerConstants; epubPlayerRef: ElementRef; playerConfig: PlayerConfig; showFullScreen: boolean; headerActionsEvent: EventEmitter<any>; telemetryEvent: EventEmitter<any>; playerEvent: EventEmitter<object>; private unlistenMouseEnter; private unlistenMouseLeave; showControls: boolean; validPage: boolean; showContentError: boolean; sideMenuConfig: { showShare: boolean; showDownload: boolean; showReplay: boolean; showExit: boolean; showPrint: boolean; }; isInitialized: boolean; viewState: epubPlayerConstants; intervalRef: any; progress: number; showEpubViewer: boolean; traceId: string; currentPageIndex: number; headerConfiguration: { rotation: boolean; goto: boolean; navigation: boolean; zoom: boolean; }; constructor(viwerService: ViwerService, epubPlayerService: EpubPlayerService, errorService: ErrorService, utilService: UtilService, renderer2: Renderer2); onTelemetryEvent(event: any): void; ngOnInit(): Promise<void>; ngOnChanges(changes: SimpleChanges): void; ngAfterViewInit(): void; headerActions(eventdata: any): void; viewerEvent(event: any): void; resetValidPage(): void; onEpubLoaded(event: any): void; onPageChange(event: any): void; onJumpToPage(type: any): void; onEpubEnded(event: any): void; onEpubLoadFailed(error: any): void; replayContent(event: any): void; exitContent(event: any): void; sideBarEvents(event: any): void; sidebarMenuEvent(event: any): void; getEpubLoadingProgress(): void; downloadEpub(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<EpubPlayerComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<EpubPlayerComponent, "sunbird-epub-player", never, { "playerConfig": { "alias": "playerConfig"; "required": false; }; "showFullScreen": { "alias": "showFullScreen"; "required": false; }; }, { "headerActionsEvent": "headerActionsEvent"; "telemetryEvent": "telemetryEvent"; "playerEvent": "playerEvent"; }, never, never, false, never>; }