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

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

Helper class to assist delayed shared element activity transition for view created by FullWidthDetailsOverviewRowPresenter.

Public methods

open Boolean

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

open Unit

open Unit

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

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

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

open Unit

Manually start postponed enter transition.

Public constructors

<init>

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.

Public methods

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.

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.

setSharedElementEnterTransition

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

setSharedElementEnterTransition

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

startPostponedEnterTransition

open fun startPostponedEnterTransition(): Unit

Manually start postponed enter transition.