Most visited

Recently visited

Added in API level 1

DialogInterface.OnCancelListener

public static interface DialogInterface.OnCancelListener

android.content.DialogInterface.OnCancelListener
Known Indirect Subclasses


用于允许对话框的创建者在对话框被取消时运行一些代码的界面。

只有当对话框被取消时,才会调用它,如果创建者需要知道它何时被解散,请使用 DialogInterface.OnDismissListener

Summary

Public methods

abstract void onCancel(DialogInterface dialog)

这个方法将在对话框被取消时被调用。

Public methods

onCancel

Added in API level 1
void onCancel (DialogInterface dialog)

这个方法将在对话框被取消时被调用。

Parameters
dialog DialogInterface: The dialog that was canceled will be passed into the method.

Hooray!