Code example for AlertDialog.Builder

Methods: setOnKeyListener

0
     * Sets the callback that will be called if a key is dispatched to the dialog. 
     * 
     * @return This Builder object to allow for chaining of calls to set methods 
     */ 
    public AlertDialogBuilderWrapper setOnKeyListener(OnKeyListener onKeyListener) {
        builder.setOnKeyListener(onKeyListener);
        return this;
    } 
     
    /** 
     * Set a list of items to be displayed in the dialog as the content, you will be notified of the 
     * selected item via the supplied listener. This should be an array type i.e. R.array.foo 
     * 
     * @return This Builder object to allow for chaining of calls to set methods 
     */ 
    public AlertDialogBuilderWrapper setItems(int itemsId, final OnClickListener listener) {
        builder.setItems(itemsId, listener);
        return this;
    } 
     
Experience pair programming with AI  Get Codota for Java