Directly block the monitoring response within 1 second Without writing ObjC, the following is a solution to prevent rapid secondary clicks on Android. The principle is probably the same, for reference.
private static long lastClickTime;
public static boolean isFastDoubleClick() {
long time = System.currentTimeMillis();
long timeD = time - lastClickTime;
if ( 0 < timeD && timeD < 1000) {
return true;
}
lastClickTime = time;
return false;
}
Directly block the monitoring response within 1 second
Without writing ObjC, the following is a solution to prevent rapid secondary clicks on Android.
The principle is probably the same, for reference.