fix:上位机

1.改成由父类实现截取全屏的方法
master
李杰应 2024-08-06 10:34:30 +08:00
parent bd8673f832
commit b56418e3b9
3 changed files with 22 additions and 17 deletions

View File

@ -79,7 +79,28 @@ public abstract class IosDeviceHandleHelper {
public abstract boolean activateApp(String deviceId, String appPackage);
/**
*
* x y
*
* @param deviceId
* @param startX
* @param startY
* @param cutWidth
* @param cutHeight
* @param screenWidth
* @param screenHeight
* @return
*/
public abstract File getScreenShotFile(String deviceId, Integer startX, Integer startY, Integer cutWidth, Integer cutHeight, Integer screenWidth, Integer screenHeight);
public abstract File getScreenShotFile(String deviceId);
/**
*
*
* @param deviceId id
* @return
*/
public File getScreenShotFile(String deviceId){
return getScreenShotFile(deviceId, null, null, null, null, null, null);
};
}

View File

@ -239,9 +239,4 @@ public class LinuxAndWindowsIosHandleHelper extends IosDeviceHandleHelper {
}
}
}
@Override
public File getScreenShotFile(String deviceId) {
return getScreenShotFile(deviceId, null, null, null, null, null, null);
}
}

View File

@ -111,15 +111,4 @@ public class MacIosHandleHelper extends IosDeviceHandleHelper {
}
return file;
}
/**
*
*
* @param deviceId
* @return
*/
@Override
public File getScreenShotFile(String deviceId) {
return getScreenShotFile(deviceId, null, null, null, null, null, null);
}
}