@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
34 lines (33 loc) • 1.64 kB
TypeScript
import { AfterViewInit, ElementRef, EventEmitter, OnInit, OnDestroy, SimpleChanges, OnChanges } from '@angular/core';
import { ViwerService } from '../services/viewerService/viwer-service';
import { UtilService } from '../services/utilService/util.service';
import * as i0 from "@angular/core";
export declare class EpubViewerComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy {
viwerService: ViwerService;
private utilService;
eBook: any;
rendition: any;
lastSection: any;
scrolled: boolean;
epubViewer: ElementRef;
epubSrc: string;
config: any;
identifier: string;
actions: EventEmitter<any>;
showFullScreen: boolean;
viewerEvent: EventEmitter<any>;
idForRendition: any;
epubBlob: object;
constructor(viwerService: ViwerService, utilService: UtilService);
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
ngAfterViewInit(): Promise<void>;
displayEpub(): void;
handleActions(spine: any): void;
saveCurrentLocation(): void;
emitEndEvent(): void;
emitErrorEvent(): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<EpubViewerComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<EpubViewerComponent, "epub-viewer", never, { "epubSrc": { "alias": "epubSrc"; "required": false; }; "config": { "alias": "config"; "required": false; }; "identifier": { "alias": "identifier"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "showFullScreen": { "alias": "showFullScreen"; "required": false; }; }, { "viewerEvent": "viewerEvent"; }, never, never, false, never>;
}