Android Double Tap using latest java client

Hi Team,

Did anyone implemented the Double tap method using latest java client version 6 or above.

I can able implement few android touch using the Android Touch Action class. But, not able to implement double-tap.
https://appium.github.io/java-client/io/appium/java_client/android/AndroidTouchAction.html

Kindly suggest me few implementations. Thank you.

Try this touchAction.tap(new TapOptions().withTapsCount(2).withElement((ElementOption) WebElement)).perform();

Thanks a lot KJ Abhilash. It is tapping the element. I would like you pinch the zoom the image using the double tap. But, Above code is not working in that scenario.

Do you have similar examples for Pinch and Zoom ? Can you please share the code snippets for it.

Thans,
Bhanu Prakash