Interface UIColorPickerViewControllerDelegate


  • public interface UIColorPickerViewControllerDelegate
    API-Since: 14.0
    • Method Detail

      • colorPickerViewControllerDidFinish

        default void colorPickerViewControllerDidFinish​(@NotNull
                                                        @NotNull UIColorPickerViewController viewController)
        In presentations (except popovers) the color picker shows a close button. If the close button is tapped, the view controller is dismissed and `colorPickerViewControllerDidFinish:` is called. Can be used to animate alongside the dismissal.
      • colorPickerViewControllerDidSelectColor

        @Deprecated
        default void colorPickerViewControllerDidSelectColor​(@NotNull
                                                             @NotNull UIColorPickerViewController viewController)
        Deprecated.
        Called when the `selectedColor` changes. API-Since: 14.0 Deprecated-Since: 15.0
      • colorPickerViewControllerDidSelectColorContinuously

        default void colorPickerViewControllerDidSelectColorContinuously​(@NotNull
                                                                         @NotNull UIColorPickerViewController viewController,
                                                                         @NotNull
                                                                         @NotNull UIColor color,
                                                                         boolean continuously)
        Called when the selected color changes.
        Parameters:
        viewController - This color picker.
        color - The new selected color
        continuously - YES, if this update is part of a continuous user interaction (e.g. dragging through the spectrum). It's recommended to show these updates in your UI but to not include them in any undo operations. API-Since: 15.0