Code example for JsPromptResult

Methods: cancel

0
                    result.confirm(et.getText().toString());
                } 
            }).setNeutralButton("取消", new OnClickListener() {
                @Override 
                public void onClick(DialogInterface dialog, int which) {
                    result.cancel();
                } 
            }); 
 
            builder.setOnCancelListener(new OnCancelListener() {
                 
                @Override 
                public void onCancel(DialogInterface dialog) {
                    result.cancel();
                } 
            }); 
             
            AlertDialog dialog = builder.create();
            dialog.show();
            return true; 
Experience pair programming with AI  Get Codota for Java