public void DetachEvent(VlcEventManagerInstance eventManagerInstance, EventTypes eventType, EventCallback callback) { if (eventManagerInstance == IntPtr.Zero) { throw new ArgumentException("Event manager is not initialized."); } if (callback == null) { return; } GetInteropDelegate <DetachEvent>().Invoke(eventManagerInstance, eventType, callback, IntPtr.Zero); }
public int AttachEvent(VlcEventManagerInstance eventManagerInstance, EventTypes eventType, EventCallback callback) { if (eventManagerInstance == IntPtr.Zero) { throw new ArgumentException("Event manager instance is not initialized."); } if (callback == null) { throw new ArgumentException("Callback for event is not initialized."); } return(GetInteropDelegate <AttachEvent>().Invoke(eventManagerInstance, eventType, callback, IntPtr.Zero)); }