Vinyl
    Preparing search index...

    Interface MtsEvents

    Dispatches MTS business events.

    interface MtsEvents {
        logPrefix: string;
        hasAnyListeners(): boolean;
        hasListeners(type: keyof MtsEventMap): boolean;
        initializePersistence(__namedParameters: MtsEventsPersistenceOptions): void;
        on<K extends keyof MtsEventMap>(
            type: K,
            handler: EventHandler<MtsEventMap[K]>,
            options?: SignalOptions,
        ): Unsubscribe;
    }

    Hierarchy (View Summary)

    Implemented by

    Index

    Properties

    logPrefix: string

    A string prefix for all log statements made by this target.

    Methods

    • Returns true if the event host has any listeners.

      Returns boolean

    • Returns true if the event host has any listeners for the given type.

      Parameters

      Returns boolean

    • Stores pending events to persistence. If the app is closed before the player unloads a track, these events will be recovered and emitted (asynchronously) when this function is called. Events will be saved to persistence

      Parameters

      Returns void