The Android Developer Challenge is back! Submit your idea before December 2.

VideoSupportFragment

open class VideoSupportFragment : PlaybackSupportFragment
kotlin.Any
   ↳ androidx.fragment.app.Fragment
   ↳ androidx.leanback.app.PlaybackSupportFragment
   ↳ androidx.leanback.app.VideoSupportFragment

Subclass of PlaybackSupportFragment that is responsible for providing a SurfaceView and rendering video. See base class PlaybackSupportFragment for how to setup controls and how to customize showing/hiding controls.

Summary

Inherited constants

Public constructors

Subclass of PlaybackSupportFragment that is responsible for providing a SurfaceView and rendering video.

Public methods

open SurfaceView!

Returns the surface view.

open View?
onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?)

open Unit

open Unit

Adds SurfaceHolder.Callback to android.view.SurfaceView.

Protected methods

open Unit
onVideoSizeChanged(width: Int, height: Int)

Inherited functions

Public constructors

<init>

VideoSupportFragment()

Subclass of PlaybackSupportFragment that is responsible for providing a SurfaceView and rendering video. See base class PlaybackSupportFragment for how to setup controls and how to customize showing/hiding controls.

Public methods

getSurfaceView

open fun getSurfaceView(): SurfaceView!

Returns the surface view.

onCreateView

open fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View?

onDestroyView

open fun onDestroyView(): Unit

setSurfaceHolderCallback

open fun setSurfaceHolderCallback(callback: Callback!): Unit

Adds SurfaceHolder.Callback to android.view.SurfaceView.

Protected methods

onVideoSizeChanged

protected open fun onVideoSizeChanged(width: Int, height: Int): Unit