Where can i use cursor-activity callback

I want to react to cursor movement, but i cant find a way to apply this callback effectively.
Someone has an idea on how i can use it in the current api?