TextFieldTextMonitor

public class TextFieldTextMonitor : BaseNotificationMonitor

A TextFieldTextMonitor instance monitors a text field for changes to its text.

  • Encapsulates changes to the text of the text field.

    See more

    Declaration

    Swift

    public enum Event
  • Specifies which events to monitor.

    See more

    Declaration

    Swift

    public struct Options : OptionSet
  • Initializes a new TextFieldTextMonitor.

    Declaration

    Swift

    public init(textField: UITextField,
                options: Options = .all,
                queue: OperationQueue = .main,
                handler: @escaping (Event) -> Void)

    Parameters

    textField

    The text field to monitor.

    options

    The options that specify which events to monitor. By default, all events are monitored.

    queue

    The operation queue on which the handler executes. By default, the main operation queue is used.

    handler

    The handler to call when the text of the text field changes.

  • The text field being monitored.

    Declaration

    Swift

    public let textField: UITextField
  • Declaration

    Swift

    public override func addNotificationObservers()