Code example for Handler

Methods: sendEmptyMessage

0
    public void mouseUp() { 
        mEventSenderHandler.sendEmptyMessage(MSG_MOUSE_UP);
    } 
 
    public void mouseClick() { 
        mEventSenderHandler.sendEmptyMessage(MSG_MOUSE_CLICK);
    } 
 
    public void mouseMoveTo(int x, int y) {
        mEventSenderHandler.obtainMessage(MSG_MOUSE_MOVE_TO, x, y).sendToTarget();
    } 
 
    /** TOUCH */ 
 
    public void addTouchPoint(int x, int y) {
        mEventSenderHandler.obtainMessage(MSG_ADD_TOUCH_POINT, x, y).sendToTarget();
    } 
 
    public void touchStart() { 
        mEventSenderHandler.sendEmptyMessage(MSG_TOUCH_START);
Experience pair programming with AI  Get Codota for Java