@realsee/vr-signals API Documentation - v2.0.0
    Preparing search index...

    Interface StandardEventManager

    标准的事件管理器

    interface StandardEventManager {
        addEventListener(
            type: string,
            listener: null | EventListener | EventListenerObject,
            options?: boolean | AddEventListenerOptions,
        ): void;
        removeEventListener(
            type: string,
            listener: null | EventListener | EventListenerObject,
            options?: boolean | EventListenerOptions,
        ): void;
        addEventListenerWithOptions(
            type: string,
            listener: null | EventListener | EventListenerObject,
            options: StandardEventOptions,
        ): () => void;
        dispatchEvent(event: Event): boolean;
        dispatchCustomEvent<T = any>(
            type: string,
            detail?: T,
            options?: CustomEventInit<T>,
        ): boolean;
        dispatchBuiltInEvent(type: string, options?: EventInit): boolean;
        hasEventListener(type: string): boolean;
        getListenerCount(type: string): number;
    }
    Index

    Methods

    • Parameters

      • type: string
      • listener: null | EventListener | EventListenerObject
      • Optionaloptions: boolean | AddEventListenerOptions

      Returns void

    • Parameters

      • type: string
      • listener: null | EventListener | EventListenerObject
      • Optionaloptions: boolean | EventListenerOptions

      Returns void

    • Parameters

      Returns () => void

    • Parameters

      • event: Event

      Returns boolean

    • Type Parameters

      • T = any

      Parameters

      • type: string
      • Optionaldetail: T
      • Optionaloptions: CustomEventInit<T>

      Returns boolean

    • Parameters

      • type: string
      • Optionaloptions: EventInit

      Returns boolean

    • Parameters

      • type: string

      Returns boolean

    • Parameters

      • type: string

      Returns number