Refer:
Selector
Selectable Channel
Sample Code