Package apple.uikit.protocol
Interface UIPickerViewDelegate
-
- All Known Subinterfaces:
UIPickerViewAccessibilityDelegate
public interface UIPickerViewDelegate
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default @Nullable NSAttributedStringpickerViewAttributedTitleForRowForComponent(@NotNull UIPickerView pickerView, long row, long component)attributed title is favored if both methods are implemented API-Since: 6.0default voidpickerViewDidSelectRowInComponent(@NotNull UIPickerView pickerView, long row, long component)default doublepickerViewRowHeightForComponent(@NotNull UIPickerView pickerView, long component)default @Nullable java.lang.StringpickerViewTitleForRowForComponent(@NotNull UIPickerView pickerView, long row, long component)these methods return either a plain NSString, a NSAttributedString, or a view (e.g UILabel) to display the row for the component.default @NotNull UIViewpickerViewViewForRowForComponentReusingView(@NotNull UIPickerView pickerView, long row, long component, @Nullable UIView view)default doublepickerViewWidthForComponent(@NotNull UIPickerView pickerView, long component)returns width of column and height of row for each component.
-
-
-
Method Detail
-
pickerViewAttributedTitleForRowForComponent
@Nullable default @Nullable NSAttributedString pickerViewAttributedTitleForRowForComponent(@NotNull @NotNull UIPickerView pickerView, long row, long component)
attributed title is favored if both methods are implemented API-Since: 6.0
-
pickerViewDidSelectRowInComponent
default void pickerViewDidSelectRowInComponent(@NotNull @NotNull UIPickerView pickerView, long row, long component)
-
pickerViewRowHeightForComponent
default double pickerViewRowHeightForComponent(@NotNull @NotNull UIPickerView pickerView, long component)
-
pickerViewTitleForRowForComponent
@Nullable default @Nullable java.lang.String pickerViewTitleForRowForComponent(@NotNull @NotNull UIPickerView pickerView, long row, long component)these methods return either a plain NSString, a NSAttributedString, or a view (e.g UILabel) to display the row for the component. for the view versions, we cache any hidden and thus unused views and pass them back for reuse. If you return back a different object, the old one will be released. the view will be centered in the row rect
-
pickerViewViewForRowForComponentReusingView
@NotNull default @NotNull UIView pickerViewViewForRowForComponentReusingView(@NotNull @NotNull UIPickerView pickerView, long row, long component, @Nullable @Nullable UIView view)
-
pickerViewWidthForComponent
default double pickerViewWidthForComponent(@NotNull @NotNull UIPickerView pickerView, long component)returns width of column and height of row for each component.
-
-