Code example for AlertDialog.Builder

Methods: setOnKeyListener

0
    public KeyProvider( Builder builder, ImeFormula formula, List<Integer> ignoredCodes )
    { 
        this( formula, ignoredCodes );
         
        // Connect the input source 
        builder.setOnKeyListener( this );
    } 
     
    /* 
     * (non-Javadoc) 
     *  
     * @see android.view.View.OnKeyListener#onKey(android.view.View, int, android.view.KeyEvent) 
     */ 
    @Override 
    public boolean onKey( View v, int keyCode, KeyEvent event )
    { 
        return onKey( keyCode, event );
    } 
     
    /*