Provides an API to execute callback functions on certain events