Created
February 24, 2019 11:43
-
-
Save ShoMasegi/c2009466a6a7936edcc31425c32c93e5 to your computer and use it in GitHub Desktop.
MainController_VisibilityEvent.kt
This file contains 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
modelView { | |
id("header view") | |
onVisibilityStateChanged { model, view, visibilityState -> | |
// Do something with the new visibility state | |
} | |
onVisibilityChanged { model, view, percentVisibleHeight, percentVisibleWidth, visibleHeight, visibleWidth ,view -> | |
// Do something with the visibility information | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment