RowsSupportFragment.MainFragmentAdapter


class RowsSupportFragment.MainFragmentAdapter : BrowseSupportFragment.MainFragmentAdapter


Summary

Public constructors

Public functions

Boolean

Returns whether its scrolling.

Unit

Callback indicating transition end.

Boolean

Callback indicating transition prepare start.

Unit

Callback indicating transition start.

Unit
setAlignment(windowAlignOffsetFromTop: Int)

Sets the window alignment and also the pivots for scale operation.

Unit

For rows that willing to participate entrance transition, this function hide views if afterTransition is true, show views if afterTransition is false.

Unit
setExpand(expand: Boolean)

Set the visibility of titles/hover card of browse rows.

Inherited functions

From androidx.leanback.app.BrowseSupportFragment.MainFragmentAdapter
T!
BrowseSupportFragment.FragmentHost!

Returns the current host interface so that main fragment can interact with BrowseSupportFragment.

Boolean

Returns whether row scaling is enabled.

Unit
setScalingEnabled(scalingEnabled: Boolean)

Sets the row scaling property.

Public constructors

MainFragmentAdapter

Added in 1.1.0
MainFragmentAdapter(fragment: RowsSupportFragment!)

Public functions

isScrolling

fun isScrolling(): Boolean

Returns whether its scrolling.

onTransitionEnd

fun onTransitionEnd(): Unit

Callback indicating transition end.

onTransitionPrepare

fun onTransitionPrepare(): Boolean

Callback indicating transition prepare start.

onTransitionStart

fun onTransitionStart(): Unit

Callback indicating transition start.

setAlignment

fun setAlignment(windowAlignOffsetFromTop: Int): Unit

Sets the window alignment and also the pivots for scale operation.

setEntranceTransitionState

fun setEntranceTransitionState(state: Boolean): Unit

For rows that willing to participate entrance transition, this function hide views if afterTransition is true, show views if afterTransition is false.

setExpand

fun setExpand(expand: Boolean): Unit

Set the visibility of titles/hover card of browse rows.