How to long press on android record button(during chat) for a particular time duration in appium by java

@Telmo_Cardoso could you please ans my below question