Lines Matching refs:listener
60 * Cancels the operation and signals the cancellation listener.
64 final OnCancelListener listener;
72 listener = mOnCancelListener;
77 if (listener != null) {
78 listener.onCancel();
95 * Sets the cancellation listener to be called when canceled.
103 * listener is invoked immediately.
105 * This method is guaranteed that the listener will not be called after it
108 * @param listener The cancellation listener, or null to remove the current listener.
110 public void setOnCancelListener(OnCancelListener listener) {
114 if (mOnCancelListener == listener) {
117 mOnCancelListener = listener;
118 if (!mIsCanceled || listener == null) {
122 listener.onCancel();