Function to register a callback
The id of the SwipeEvents element
The name of the event to register the callback for
The function invoked when the event fires
Function to register a callback