iOS Guides | Samples

UIKit.UITextFieldDelegate Class

A class that receives notifications from a UITextField.

See Also: UITextFieldDelegate

Syntax

[Foundation.Model]
[Foundation.Protocol]
[Foundation.Register("UITextFieldDelegate", false)]
public class UITextFieldDelegate : NSObject, IUITextFieldDelegate, IDisposable

Remarks

A strongly typed implementation of a class that can be used to respond to events raised by the UITextField.

Related content

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of UIKit.UITextFieldDelegate are listed below.

See Also: NSObject

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Methods

EditingEnded(UITextField)
Indicates that editing has ended in the specified text field.
EditingEnded(UITextField, UITextFieldDidEndEditingReason)
Indicates that editing has ended in the specified text field for the specified reason.
EditingStarted(UITextField)
Indicates that editing has begun on the specified text field.
ShouldBeginEditing(UITextField) : Boolean
Whether editing should begin in the specified text field.
ShouldChangeCharacters(UITextField, NSRange, String) : Boolean
Whether the specified text should be changed.
ShouldClear(UITextField) : Boolean
Whether the specified text field's current contents should be removed.
ShouldEndEditing(UITextField) : Boolean
Whether editing should stop in the specified text field.
ShouldReturn(UITextField) : Boolean
Whether the text field should process the pressing of the return button.