Table of Contents

Class EventManager

Namespace
ONITwitchLib
Assembly
ONITwitchLib.dll

Provides a way to obtain a method by its id.

[PublicAPI]
public class EventManager
Inheritance
EventManager
Inherited Members

Properties

Instance

Gets the instance of the event manager from the twitch mod. Only safe to access if the Twitch mod is active.

public static EventManager Instance { get; }

Property Value

EventManager

Methods

GetEventByID(string, string)

Gets an EventInfo for the specified ID, if the ID is registered.

[CanBeNull]
public EventInfo GetEventByID(string eventNamespace, string id)

Parameters

eventNamespace string

The namespace for the ID

id string

The ID to look for

Returns

EventInfo

An EventInfo representing the event, if the ID is found, or null otherwise.