Is it possible to use UiSelector functions in Tap event?


I am beginner on Appium. I am running into issues when I use UiSelector functions in the tap event but the same works fine on the click event.

Script fails on the Tap event:
touch.tap(driver.findElementByAndroidUIAutomator(“new UiSelector().text(“Settings”)”)).perform();

Script is working fine on the click event.
driver.findElementByAndroidUIAutomator(“new UiSelector().text(“Settings”)”).click();

Is the above expected?