FullWidthDetailsOverviewSharedElementHelper

open class FullWidthDetailsOverviewSharedElementHelper : FullWidthDetailsOverviewRowPresenter.Listener
kotlin.Any
   ↳ androidx.leanback.widget.FullWidthDetailsOverviewRowPresenter.Listener
   ↳ androidx.leanback.widget.FullWidthDetailsOverviewSharedElementHelper

Helper class to assist delayed shared element activity transition for view created by FullWidthDetailsOverviewRowPresenter. User must call #setSharedElementEnterTransition(Activity, String, long) during activity onCreate() and call FullWidthDetailsOverviewRowPresenter#setListener(FullWidthDetailsOverviewRowPresenter.Listener). The helper implements FullWidthDetailsOverviewRowPresenter.Listener and starts delayed activity transition once FullWidthDetailsOverviewRowPresenter.Listener#onBindLogo(ViewHolder) is called.

Summary

Public constructors

Public methods
open Unit

open Unit

Enable or disable auto startPostponedEnterTransition() when bound to logo.

open Unit

Manually start postponed enter transition.

open Boolean

Returns true if auto startPostponedEnterTransition() when bound to logo.

open Unit
setSharedElementEnterTransition(activity: Activity!, sharedElementName: String!)

open Unit
setSharedElementEnterTransition(activity: Activity!, sharedElementName: String!, timeoutMs: Long)

Public constructors

<init>

FullWidthDetailsOverviewSharedElementHelper()

Public methods

onBindLogo

open fun onBindLogo(vh: FullWidthDetailsOverviewRowPresenter.ViewHolder!): Unit

setAutoStartSharedElementTransition

open fun setAutoStartSharedElementTransition(enabled: Boolean): Unit

Enable or disable auto startPostponedEnterTransition() when bound to logo. When it's disabled, app must call #startPostponedEnterTransition() to kick off windowEnterTransition. By default, it is disabled when there is no windowEnterSharedElementTransition set on the activity.

startPostponedEnterTransition

open fun startPostponedEnterTransition(): Unit

Manually start postponed enter transition.

getAutoStartSharedElementTransition

open fun getAutoStartSharedElementTransition(): Boolean

Returns true if auto startPostponedEnterTransition() when bound to logo. When it's disabled, app must call #startPostponedEnterTransition() to kick off windowEnterTransition. By default, it is disabled when there is no windowEnterSharedElementTransition set on the activity.

setSharedElementEnterTransition

open fun setSharedElementEnterTransition(activity: Activity!, sharedElementName: String!): Unit

setSharedElementEnterTransition

open fun setSharedElementEnterTransition(activity: Activity!, sharedElementName: String!, timeoutMs: Long): Unit