/// <summary> /// Removes a delegate previously added or set by AddCommitDelegate() /// or SetCommitDelegate(). /// </summary> /// <param name="del">The delegate to be removed.</param> public void RemoveCommitDelegate(EZKeyboardCommitDelegate del) { commitDelegate -= del; }
/// <summary> /// Sets the delegate to be called when the content of the field /// is "committed" (when the return key is pressed on a single-line /// field, or when the "Done" button is pressed on an iOS keyboard). /// NOTE: This will unset any previously assigned commit delegate. /// </summary> /// <param name="del">The delegate to be called.</param> public void SetCommitDelegate(EZKeyboardCommitDelegate del) { commitDelegate = del; }
/// <summary> /// Adds a delegate to be called when the content of the field /// is "committed" (when the return key is pressed on a single-line /// field, or when the "Done" button is pressed on an iOS keyboard). /// </summary> /// <param name="del">The delegate to be called.</param> public void AddCommitDelegate(EZKeyboardCommitDelegate del) { commitDelegate += del; }
public void RemoveCommitDelegate(EZKeyboardCommitDelegate del) { this.commitDelegate = (EZKeyboardCommitDelegate)Delegate.Remove(this.commitDelegate, del); }
public void AddCommitDelegate(EZKeyboardCommitDelegate del) { this.commitDelegate = (EZKeyboardCommitDelegate)Delegate.Combine(this.commitDelegate, del); }