Interface ExtensionMessageExternalEvent

Hierarchy

  • Event
    • ExtensionMessageExternalEvent

Index

Methods

Methods

public addListener(callback: (message: any, sender: chrome.runtime.MessageSender, sendResponse: Function) => void)

Parameters

  • callback: (message: any, sender: chrome.runtime.MessageSender, sendResponse: Function) => 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