Appium - Long press on a specific point of an element in Appium

public static void longPressOnPoint(int xCord, int yCord)
{
TouchAction action = new TouchAction(AndroidDriverManager.getDriver());
action.longPress(xCord, yCord).release().perform();
}