override fun onStateChanged()

in quizdemo/src/main/java/com/amazonaws/ivs/player/quizdemo/activities/MainActivity.kt [48:53]


            override fun onStateChanged(bottomSheet: View, newState: Int) {
                if (newState == BottomSheetBehavior.STATE_HIDDEN || newState == BottomSheetBehavior.STATE_COLLAPSED) {
                    sheetBackground.visibility = View.GONE
                    sheetBackground.alpha = 0f
                }
            }