Runtime

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

Type members

Types

type AppID = String

Value members

Concrete methods

def connect(extensionId: UndefOr[AppID], connectInfo: UndefOr[ConnectInfo]): Port
def connectNative(application: String): Port
def getBackgroundPage(callback: Function1[Window, _]): Unit
def getPackageDirectoryEntry(callback: Function1[DirectoryEntry, _]): Unit
def getPlatformInfo(callback: Function1[PlatformInfo, _]): Unit
def getURL(path: String): String
def lastError: UndefOr[Error]
def openOptionsPage(callback: UndefOr[Function0[_]]): Unit
def reload(): Unit
def requestUpdateCheck(callback: Function2[Status, UndefOr[Details], _]): Unit
def restart(): Unit
def sendMessage(extensionId: UndefOr[AppID], message: Any, options: UndefOr[SendMessageOptions], responseCallback: UndefOr[Function1[Object, _]]): Unit
def sendNativeMessage(application: String, message: Object, responseCallback: UndefOr[Function1[Object, _]]): Unit
def setUninstallURL(url: String): 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 id: AppID
val onBrowserUpdateAvailable: Event[Function0[_]]
val onConnect: Event[Function1[Port, _]]
val onConnectExternal: Event[Function1[Port, _]]
val onMessage: Event[Function3[UndefOr[Any], MessageSender, Function1[Any, _], Boolean]]
val onMessageExternal: Event[Function3[UndefOr[Any], MessageSender, Function1[Any, _], Boolean]]
val onStartup: Event[Function0[_]]
val onSuspend: Event[Function0[_]]
val onSuspendCanceled: Event[Function0[_]]