Downloads

@native @JSGlobal("chrome.downloads") @JSType
object Downloads extends Object
class Object
trait Any
class Object
trait Matchable
class Any

Type members

Types

type Suggest = Option[Suggestion] => Unit

Value members

Concrete methods

def acceptDanger(id: Id, callback: UndefOr[Function0[_]]): Unit
def cancel(id: Id, callback: UndefOr[Function0[_]]): Unit
def download(options: DownloadOptions, callback: UndefOr[Function1[Id, _]]): Unit
def drag(id: Id): Unit
def erase(query: Query, callback: UndefOr[Function1[Array[Id], _]]): Unit
def getFileIcon(id: Id, options: UndefOr[FileIconOptions], callback: UndefOr[Function1[UndefOr[String], _]]): Unit
def open(id: Id): Unit
def pause(id: Id, callback: UndefOr[Function0[_]]): Unit
def removeFile(id: Id, callback: UndefOr[Function0[_]]): Unit
def resume(id: Id, callback: UndefOr[Function0[_]]): Unit
def search(query: Query, callback: Function1[Array[DownloadItem], _]): Unit
def setShelfEnabled(enabled: Boolean): Unit
def show(id: Id): Unit
def showDefaultFolder(): Unit

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from
Object
def isPrototypeOf(v: Object): Boolean
Inherited from
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from
Object
def toLocaleString(): String
Inherited from
Object
def valueOf(): Any
Inherited from
Object

Concrete fields

val onChanged: Event[Function1[DownloadDelta, _]]
val onCreated: Event[Function1[DownloadItem, _]]
val onErased: Event[Function1[Id, _]]