What is an event handler?

6

I've read what an event , but then I saw that there are event handlers, event handler .

  • What is an event handler ?
  • What are they serving and where are they used?
  • Are there in all languages?
asked by anonymous 25.05.2017 / 21:21

1 answer

6

The rough way is the action that should be performed when an event should be triggered. This is usually a method or function with a specific signature that will be called by the event. It is a callback .

Because it is an event handler, it responds when an event is triggered, it manipulates the event and does something.

They are usually linked to objects that need to be notified of events that occur with other objects to take some action.

The exact form of implementation may vary. Some can be created by language, library or manually. The API that generates the event will determine how it needs to be done.

The remaining questions can not be answered and are irrelevant information. At least as asked.

See more:

25.05.2017 / 21:29