you can find the sample example at Blackberry git hub repo. rite now i don't remember repo but you can explore. search with BB10 API example you may get.

Thanks-------------------------------------------------------------------------------------Press the Accept as solution Button when u got the SolutionPress Kudo to say thank to developer.-------------------------------------------------------------------------------------.