Code example for Handler

Methods: getLooper

0
        GestureHandler() { 
            super(); 
        } 
 
        GestureHandler(Handler handler) {
            super(handler.getLooper());
        } 
 
    } 
     
    /** 
     * Creates a GestureDetector with the supplied listener. 
     * You may only use this constructor from a UI thread (this is the usual situation). 
     * @see android.os.Handler#Handler() 
     * 
     * @param context the application's context 
     * @param listener the listener invoked for all the callbacks, this must 
     * not be null. 
     * 
     * @throws NullPointerException if {@code listener} is null. 
     */