In pull #854 AndreiH has put in method and properties to interact with this notification so when that is merged in (hopefully today) you can update this to use them instead.