Last active
April 20, 2018 13:46
-
-
Save vorobeij/667414814f2e7f70e5dd7aff4cab955d to your computer and use it in GitHub Desktop.
setListener for custom view lambda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fun setRangeChangeListener(listener: (Int, Int) -> Unit) { | |
| rangeChangedListener = object : RangeChangedListener { | |
| override fun onRangeChanged(left: Int, | |
| right: Int) = listener(left, right) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment