Notifications

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

Type members

Types

type Id = String

Value members

Concrete methods

def clear(id: Id, callback: UndefOr[Function1[Boolean, _]]): Unit
def create(id: UndefOr[Id], options: NotificationOptions, callback: UndefOr[Function1[Id, _]]): Unit
def getAll(callback: Function1[Map[Id, Boolean], _]): Unit
def getPermissionLevel(callback: Function1[PermissionLevel, _]): Unit
def update(id: Id, options: NotificationOptions, callback: UndefOr[Function1[Boolean, _]]): 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 onButtonClicked: Event[Function2[Id, Int, _]]
val onClicked: Event[Function1[Id, _]]
val onClose: Event[Function2[Id, Boolean, _]]
val onShowSettings: Event[Function0[_]]