Class event

Index

Methods

Methods

public static addDomListener(instance: any, eventName: string, handler: (event?: any, ...args: any[]) => void, capture?: boolean): MapsEventListener

Parameters

  • instance: any
  • eventName: string
  • handler: (event?: any, ...args: any[]) => void
  • capture?: boolean optional

Returns

MapsEventListener

public static addDomListener(instance: any, eventName: string, handler: Function, capture?: boolean): MapsEventListener

Parameters

  • instance: any
  • eventName: string
  • handler: Function
  • capture?: boolean optional

Returns

MapsEventListener

public static addDomListenerOnce(instance: any, eventName: string, handler: (event?: any, ...args: any[]) => void, capture?: boolean): MapsEventListener

Parameters

  • instance: any
  • eventName: string
  • handler: (event?: any, ...args: any[]) => void
  • capture?: boolean optional

Returns

MapsEventListener

public static addDomListenerOnce(instance: any, eventName: string, handler: Function, capture?: boolean): MapsEventListener

Parameters

  • instance: any
  • eventName: string
  • handler: Function
  • capture?: boolean optional

Returns

MapsEventListener

public static addListener(instance: any, eventName: string, handler: (event?: any, ...args: any[]) => void): MapsEventListener

Parameters

  • instance: any
  • eventName: string
  • handler: (event?: any, ...args: any[]) => void

Returns

MapsEventListener

public static addListener(instance: any, eventName: string, handler: Function): MapsEventListener

Parameters

  • instance: any
  • eventName: string
  • handler: Function

Returns

MapsEventListener

public static addListenerOnce(instance: any, eventName: string, handler: (event?: any, ...args: any[]) => void): MapsEventListener

Parameters

  • instance: any
  • eventName: string
  • handler: (event?: any, ...args: any[]) => void

Returns

MapsEventListener

public static addListenerOnce(instance: any, eventName: string, handler: Function): MapsEventListener

Parameters

  • instance: any
  • eventName: string
  • handler: Function

Returns

MapsEventListener

public static clearInstanceListeners(instance: any)

Parameters

  • instance: any

public static clearListeners(instance: any, eventName: string)

Parameters

  • instance: any
  • eventName: string

public static removeListener(listener: MapsEventListener)

Parameters

public static trigger(instance: any, eventName: string, args?: Array<any>)

Parameters

  • instance: any
  • eventName: string
  • args?: Array<any> optional