Code example for Gallery

Methods: getSelectedItemPosition