It says in the description of the function:
Registers a function to be called when a slave device receives a transmission from a master.
So when does it exactly called? I guess it's not been called for each byte, but its the meaning of receiving transmission from the master. Does it called for each byte? When the master use transmissionBegin? transmissionEnd?