File

src/app/active-downloads/active-downloads.interface.ts

Extends

OnInit

Index

Properties
Methods

Methods

cancelAllDownloads
cancelAllDownloads()
Returns : void
cancelDownload
cancelDownload(downloadRequest: DownloadRequest)
Parameters :
Name Type Optional
downloadRequest DownloadRequest No
Returns : void
getContentDownloadProgress
getContentDownloadProgress(contentId: string)
Parameters :
Name Type Optional
contentId string No
Returns : number

Properties

activeDownloadRequests$
activeDownloadRequests$: Observable<ContentDownloadRequest[]>
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;
}

results matching ""

    No results matching ""