Add onTogglingTrait to the Listening interface.