@wailsio/runtime
    Preparing search index...

    Function OnMultiple

    • Register a callback function to be called multiple times for a specific event.

      Type Parameters

      • E extends string & {} = string & {}

      Parameters

      • eventName: E

        The name of the event to register the callback for.

      • callback: WailsEventCallback<E>

        The callback function to be called when the event is triggered.

      • maxCallbacks: number

        The maximum number of times the callback can be called for the event. Once the maximum number is reached, the callback will no longer be called.

      Returns () => void

      A function that, when called, will unregister the callback from the event.