Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

OnViewTypeChangedListener

interface OnViewTypeChangedListener
androidx.media2.widget.VideoView.OnViewTypeChangedListener

Interface definition of a callback to be invoked when the view type has been changed.

Summary

Public methods

abstract Unit
onViewTypeChanged(@NonNull view: View, viewType: Int)

Called when the view type has been changed.

Public methods

onViewTypeChanged

abstract fun onViewTypeChanged(@NonNull view: View, viewType: Int): Unit

Called when the view type has been changed.

Parameters
view View: the View whose view type is changed
viewType View: