Did you check their code sample linked by Lachlan in the same post? You already have all the information that you need in my first reply. We generally use this forum to provide high level guidance to steer you in a direction on how to resolve the problem on your own.
Since these are low level framework customizations and if you are having trouble understand of what you are doing to those, maybe you should involve a more experienced developer to help you out and make you understand the details.