Lines Matching refs:listener
61 * Cancels the operation and signals the cancellation listener.
65 final OnCancelListener listener;
73 listener = mOnCancelListener;
78 if (listener != null) {
79 listener.onCancel();
93 * Sets the cancellation listener to be called when canceled.
101 * listener is invoked immediately.
103 * This method is guaranteed that the listener will not be called after it
106 * @param listener The cancellation listener, or null to remove the current listener.
108 public void setOnCancelListener(OnCancelListener listener) {
112 if (mOnCancelListener == listener) {
115 mOnCancelListener = listener;
116 if (!mIsCanceled || listener == null) {
120 listener.onCancel();