Skip to content

Instantly share code, notes, and snippets.

@ShoMasegi
Created February 24, 2019 11:43
Show Gist options
  • Save ShoMasegi/c2009466a6a7936edcc31425c32c93e5 to your computer and use it in GitHub Desktop.
Save ShoMasegi/c2009466a6a7936edcc31425c32c93e5 to your computer and use it in GitHub Desktop.
MainController_VisibilityEvent.kt
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