Hi, did you take a look at the example project to see how it is done there? The code there should be explained pretty well.