Code example for Handler

Methods: getLooper

        GestureHandler() { 
        GestureHandler(Handler handler) {
     * 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. 
Experience pair programming with AI  Get Codota for Java