There is TouchUtils class in the demo app which, supposedly, disables finger touches using EpdController API:
public class TouchUtils {
public static void disableFingerTouch(Context context) {
boolean canFingerTouch = EpdController.isCTPPowerOn();
if (canFingerTouch) {
int width = context.getResources().getDisplayMetrics().widthPixels;
int height = context.getResources().getDisplayMetrics().heightPixels;
Rect rect = new Rect(0, 0, width, height);
Rect[] arrayRect =new Rect[]{rect};
EpdController.setAppCTPDisableRegion(context, arrayRect);
}
}
public static void enableFingerTouch(Context context) {
boolean canFingerTouch = !EpdController.isCTPPowerOn();
if (!canFingerTouch) {
EpdController.appResetCTPDisableRegion(context);
}
}
}
I tried to use the same approach in my app and it didn't work. Furthermore, I removed the calls to the aforementioned methods from your demo app and its behavior didn't change at all. So, it looks like these calls do nothing.
How can I disable "finger touches" programatically?
There is
TouchUtils
class in the demo app which, supposedly, disables finger touches usingEpdController
API:I tried to use the same approach in my app and it didn't work. Furthermore, I removed the calls to the aforementioned methods from your demo app and its behavior didn't change at all. So, it looks like these calls do nothing.
How can I disable "finger touches" programatically?