• Bind the listener to the array of events

    Parameters

    • events: string[]

      An string array of event names to bind the listener to

    • listener: any

      The event callback to call when the event is triggered

    • OptionalexcludeEvents: string[]

      [Optional] An array of events that should not be hooked (if possible), unless no other events can be.

    • OptionalevtNamespace: string | string[]

      [Optional] Namespace(s) to append to the event listeners so they can be uniquely identified and removed based on this namespace.

    Returns boolean

    true - when at least one of the events was registered otherwise false