PickerFieldDelegate

@objc
public protocol PickerFieldDelegate : AnyObject

PickerFieldDelegate protocol. Forwards editing state changes and content changes.

  • Asks the delegate if editing should begin in the specified PickerField.

    Declaration

    Swift

    @objc
    optional func pickerFieldShouldBeginEditing(_ view: PickerField) -> Bool

    Parameters

    view

    The PickerField that called the delegate method.

  • Tells the delegate editing ended in the specified PickerField.

    Declaration

    Swift

    @objc
    optional func pickerFieldDidEndEditing(_ view: PickerField)

    Parameters

    view

    The PickerField that called the delegate method.

  • Tells the delegate that the contents have been cleared in the specified PickerField.

    Declaration

    Swift

    @objc
    optional func pickerFieldCleared(_ view: PickerField)

    Parameters

    view

    The PickerField that called the delegate method.

  • Tells the delegate that a row was selected in the specified PickerField.

    Declaration

    Swift

    @objc
    optional func pickerField(_ view: PickerField, didSelectRow row: Int)

    Parameters

    view

    The PickerField that called the delegate method.

    row

    The row that was selected.