Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
chrome
runtime
ExtensionConnectEvent
Interface ExtensionConnectEvent
Hierarchy
Event
ExtensionConnectEvent
Index
Methods
addListener
addRules
getRules
hasListener
hasListeners
removeListener
removeRules
Methods
public
addListener
(
callback
:
(port: chrome.runtime.Port) => void
)
Parameters
callback:
(port: chrome.runtime.Port) => void
public
addRules
(
rules
:
Rule
[]
, callback
?:
(rules: chrome.events.Rule[]) => void
)
Parameters
rules:
Rule
[]
callback?:
(rules: chrome.events.Rule[]) => void
optional
public
getRules
(
callback
:
(rules: chrome.events.Rule[]) => void
)
Parameters
callback:
(rules: chrome.events.Rule[]) => void
public
getRules
(
ruleIdentifiers
:
Array<string>
, callback
:
(rules: chrome.events.Rule[]) => void
)
Parameters
ruleIdentifiers:
Array<string>
callback:
(rules: chrome.events.Rule[]) => void
public
hasListener
(
callback
:
Function
)
Parameters
callback:
Function
public
hasListeners
(
)
:
boolean
Returns
boolean
public
removeListener
(
callback
:
Function
)
Parameters
callback:
Function
public
removeRules
(
ruleIdentifiers
?:
Array<string>
, callback
?:
Function
)
Parameters
ruleIdentifiers?:
Array<string>
optional
callback?:
Function
optional
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
addListener
addRules
getRules
hasListener
hasListeners
removeListener
removeRules
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