Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface JavaScriptBridge

Hierarchy

  • EventEmitter
    • JavaScriptBridge

Index

Methods

addListener

  • addListener(event: string | symbol, listener: (...args: any[]) => void): JavaScriptBridge
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns JavaScriptBridge

emit

  • emit(event: string | symbol, ...args: any[]): boolean
  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

eval

  • eval(code: string): Promise<any>
  • Parameters

    • code: string

    Returns Promise<any>

eventNames

  • eventNames(): (string | symbol)[]
  • Returns (string | symbol)[]

getMaxListeners

  • getMaxListeners(): number
  • Returns number

handle

invoke

  • invoke(channel: string, ...args: any): Promise<any>
  • Parameters

    • channel: string
    • Rest ...args: any

    Returns Promise<any>

listenerCount

  • listenerCount(event: string | symbol): number
  • Parameters

    • event: string | symbol

    Returns number

listeners

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

off

  • off(event: string | symbol, listener: (...args: any[]) => void): JavaScriptBridge
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns JavaScriptBridge

on

  • Parameters

    • event: string
    • listener: (event: IPCEvent, ...args: any) => void
        • Parameters

          Returns void

    Returns JavaScriptBridge

once

  • once(event: string | symbol, listener: (...args: any[]) => void): JavaScriptBridge
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns JavaScriptBridge

prependListener

  • prependListener(event: string | symbol, listener: (...args: any[]) => void): JavaScriptBridge
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns JavaScriptBridge

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): JavaScriptBridge
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns JavaScriptBridge

rawListeners

  • rawListeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

removeAllListeners

  • Parameters

    • Optional event: string | symbol

    Returns JavaScriptBridge

removeListener

  • removeListener(event: string | symbol, listener: (...args: any[]) => void): JavaScriptBridge
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns JavaScriptBridge

send

  • send(event: string, ...args: any): void
  • Parameters

    • event: string
    • Rest ...args: any

    Returns void

setMaxListeners

  • Parameters

    • n: number

    Returns JavaScriptBridge