TableViewSelectionMonitor

public class TableViewSelectionMonitor : BaseNotificationMonitor

A TableViewSelectionMonitor instance monitors a table view for changes to its selected row.

  • Encapsulates changes to the selected row in the table view.

    See more

    Declaration

    Swift

    public enum Event
  • Initializes a new TableViewSelectionMonitor.

    Declaration

    Swift

    public init(tableView: UITableView,
                queue: OperationQueue = .main,
                handler: @escaping (Event) -> Void)

    Parameters

    tableView

    The table view to monitor.

    queue

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

    handler

    The handler to call when the selected row in the table view changes.

  • The table view being monitored.

    Declaration

    Swift

    public let tableView: UITableView
  • Declaration

    Swift

    override public func addNotificationObservers()