Skip to content

OnColorSelectionListener as SAM #27

@ligi

Description

@ligi

thanks for the library - really like it! I just find the OnColorSelectionListener a bit clumsy to use from Kotlin as you cannot just pass a lambda. What do you think converting it to a SAM so we can use it this way and have nicer code?
My suggestion would be to combine onColorSelected onColorSelectionStart onColorSelectionEnd and differentiate via a parameter (e.g. an enum SELECTED,START,END)
I could also provide this as a PR - but wanted your opinion first as it is a breaking change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions