Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
chrome
runtime
Module runtime
Index
Variables
id
lastError
onConnect
onConnectExternal
onInstalled
onMessage
onMessageExternal
onRestartRequired
onStartup
onSuspend
onSuspendCanceled
onUpdateAvailable
Interfaces
ConnectInfo
ExtensionConnectEvent
ExtensionConnectExternalEvent
ExtensionMessageEvent
ExtensionMessageExternalEvent
InstalledDetails
MessageOptions
MessageSender
PlatformInfo
Port
RuntimeInstalledEvent
RuntimeMessageEvent
RuntimeRestartRequiredEvent
RuntimeStartupEvent
RuntimeSuspendCanceledEvent
RuntimeSuspendEvent
RuntimeUpdateAvailableEvent
UpdateAvailableDetails
UpdateCheckDetails
Functions
connect
connectNative
getBackgroundPage
getManifest
getPackageDirectoryEntry
getPlatformInfo
getURL
reload
requestUpdateCheck
restart
sendMessage
sendNativeMessage
setUninstallUrl
Variables
id
:
string
lastError
:
Object
onConnect
:
ExtensionConnectEvent
onConnectExternal
:
ExtensionConnectExternalEvent
onInstalled
:
RuntimeInstalledEvent
onMessage
:
RuntimeMessageEvent
onMessageExternal
:
RuntimeMessageEvent
onRestartRequired
:
RuntimeRestartRequiredEvent
onStartup
:
RuntimeStartupEvent
onSuspend
:
RuntimeSuspendEvent
onSuspendCanceled
:
RuntimeSuspendCanceledEvent
onUpdateAvailable
:
RuntimeUpdateAvailableEvent
Functions
connect
(
connectInfo
?:
ConnectInfo
)
:
Port
Parameters
connectInfo?:
ConnectInfo
optional
Returns
Port
connect
(
extensionId
:
string
, connectInfo
?:
ConnectInfo
)
:
Port
Parameters
extensionId:
string
connectInfo?:
ConnectInfo
optional
Returns
Port
connectNative
(
application
:
string
)
:
Port
Parameters
application:
string
Returns
Port
getBackgroundPage
(
callback
:
(backgroundPage?: Window) => void
)
Parameters
callback:
(backgroundPage?: Window) => void
getManifest
(
)
:
Object
Returns
Object
getPackageDirectoryEntry
(
callback
:
(directoryEntry: any) => void
)
Parameters
callback:
(directoryEntry: any) => void
getPlatformInfo
(
callback
:
(platformInfo: chrome.runtime.PlatformInfo) => void
)
Parameters
callback:
(platformInfo: chrome.runtime.PlatformInfo) => void
getURL
(
path
:
string
)
:
string
Parameters
path:
string
Returns
string
reload
(
)
requestUpdateCheck
(
callback
:
(status: string, details?: chrome.runtime.UpdateCheckDetails) => void
)
Parameters
callback:
(status: string, details?: chrome.runtime.UpdateCheckDetails) => void
restart
(
)
sendMessage
(
message
:
any
, responseCallback
?:
(response: any) => void
)
Parameters
message:
any
responseCallback?:
(response: any) => void
optional
sendMessage
(
message
:
any
, options
:
MessageOptions
, responseCallback
?:
(response: any) => void
)
Parameters
message:
any
options:
MessageOptions
responseCallback?:
(response: any) => void
optional
sendMessage
(
extensionId
:
string
, message
:
any
, responseCallback
?:
(response: any) => void
)
Parameters
extensionId:
string
message:
any
responseCallback?:
(response: any) => void
optional
sendMessage
(
extensionId
:
string
, message
:
any
, options
:
MessageOptions
, responseCallback
?:
(response: any) => void
)
Parameters
extensionId:
string
message:
any
options:
MessageOptions
responseCallback?:
(response: any) => void
optional
sendNativeMessage
(
application
:
string
, message
:
any
, responseCallback
?:
(response: any) => void
)
Parameters
application:
string
message:
any
responseCallback?:
(response: any) => void
optional
setUninstallUrl
(
url
:
string
)
Parameters
url:
string
Globals
chrome
chrome
chrome.alarms
chrome.bookmarks
chrome.browserAction
chrome.browsingData
chrome.commands
chrome.contentSettings
chrome.contextMenus
chrome.cookies
chrome.declarativeWebRequest
chrome.devtools
chrome.devtools.inspectedWindow
chrome.devtools.network
chrome.devtools.panels
chrome.downloads
chrome.events
chrome.extension
chrome.fileBrowserHandler
chrome.fontSettings
chrome.history
chrome.i18n
chrome.identity
chrome.idle
chrome.input
chrome.input.ime
chrome.management
chrome.notifications
chrome.omnibox
chrome.pageAction
chrome.pageCapture
chrome.permissions
chrome.privacy
chrome.proxy
chrome.runtime
chrome.scriptBadge
chrome.socket
chrome.storage
chrome.tabs
chrome.topSites
chrome.tts
chrome.ttsEngine
chrome.types
chrome.webNavigation
chrome.webRequest
chrome.webstore
chrome.windows
id
lastError
onConnect
onConnectExternal
onInstalled
onMessage
onMessageExternal
onRestartRequired
onStartup
onSuspend
onSuspendCanceled
onUpdateAvailable
ConnectInfo
ExtensionConnectEvent
ExtensionConnectExternalEvent
ExtensionMessageEvent
ExtensionMessageExternalEvent
InstalledDetails
MessageOptions
MessageSender
PlatformInfo
Port
RuntimeInstalledEvent
RuntimeMessageEvent
RuntimeRestartRequiredEvent
RuntimeStartupEvent
RuntimeSuspendCanceledEvent
RuntimeSuspendEvent
RuntimeUpdateAvailableEvent
UpdateAvailableDetails
UpdateCheckDetails
connect
connectNative
getBackgroundPage
getManifest
getPackageDirectoryEntry
getPlatformInfo
getURL
reload
requestUpdateCheck
restart
sendMessage
sendNativeMessage
setUninstallUrl