XYO Platform SDK - v3.10.6
    Preparing search index...

    Interface EventFunctions<TEventData>

    interface EventFunctions<TEventData extends EventData> {
        eventData: TEventData;
        clearListeners(eventNames: keyof TEventData | (keyof TEventData)[]): void;
        emit<TEventName extends string | number | symbol>(
            eventName: TEventName,
            eventArgs: TEventData[TEventName],
        ): Promise<void>;
        emitSerial<TEventName extends string | number | symbol>(
            eventName: TEventName,
            eventArgs: TEventData[TEventName],
        ): Promise<void>;
        listenerCount(eventNames: keyof TEventData | (keyof TEventData)[]): number;
        off<TEventName extends string | number | symbol>(
            eventNames: TEventName | TEventName[],
            listener: EventListener<TEventData[TEventName]>,
        ): void;
        offAny(listener: Promise<void> | EventAnyListener<EventArgs>): void;
        on<TEventName extends string | number | symbol>(
            eventNames: TEventName | TEventName[],
            listener: EventListener<TEventData[TEventName]>,
        ): EventUnsubscribeFunction;
        onAny(listener: EventAnyListener): EventUnsubscribeFunction;
        once<TEventName extends string | number | symbol>(
            eventName: TEventName,
            listener: EventListener<TEventData[TEventName]>,
        ): EventUnsubscribeFunction;
    }

    Type Parameters

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    eventData: TEventData

    Methods

    • Parameters

      Returns void

    • Type Parameters

      • TEventName extends string | number | symbol

      Parameters

      Returns Promise<void>

    • Type Parameters

      • TEventName extends string | number | symbol

      Parameters

      Returns Promise<void>

    • Parameters

      Returns number