src/app/active-downloads/active-downloads.interface.ts
OnInit
Properties |
Methods |
cancelAllDownloads |
cancelAllDownloads()
|
Returns :
void
|
cancelDownload | ||||||
cancelDownload(downloadRequest: DownloadRequest)
|
||||||
Parameters :
Returns :
void
|
getContentDownloadProgress | ||||||
getContentDownloadProgress(contentId: string)
|
||||||
Parameters :
Returns :
number
|
activeDownloadRequests$ |
activeDownloadRequests$:
|
Type : Observable<ContentDownloadRequest[]>
|
import { ContentDownloadRequest, DownloadRequest } from 'sunbird-sdk';
import { OnInit } from '@angular/core';
import { Observable } from 'rxjs';
export interface ActiveDownloadsInterface extends OnInit {
activeDownloadRequests$: Observable<ContentDownloadRequest[]>;
cancelAllDownloads(): void;
cancelDownload(downloadRequest: DownloadRequest): void;
getContentDownloadProgress(contentId: string): number;
}