GroupModel

abstract class GroupModel : EpoxyModelGroup, ModelCollector

An EpoxyModelGroup usable in a DSL manner via the group extension.

<p> Example: ``` group { id("photos") layout(R.layout.photo_grid)

// add your models here, example: for (photo in photos) { imageView { id(photo.id) url(photo.url) } } }

Constructors

GroupModel
Link copied to clipboard
fun GroupModel()
GroupModel
Link copied to clipboard
fun GroupModel(@LayoutRes() layoutRes: Int)

Functions

add
Link copied to clipboard
open override fun add(model: EpoxyModel<*>)
addIf
Link copied to clipboard
open fun addIf(@NonNull() predicate: EpoxyModel.AddPredicate, @NonNull() controller: EpoxyController)
open fun addIf(condition: Boolean, @NonNull() controller: EpoxyController)
addModel
Link copied to clipboard
open fun addModel(@NonNull() model: EpoxyModel<*>)
addTo
Link copied to clipboard
open fun addTo(@NonNull() controller: EpoxyController)
addWithDebugValidation
Link copied to clipboard
fun addWithDebugValidation(@NonNull() controller: EpoxyController)
bind
Link copied to clipboard
open override fun bind(@NonNull() holder: ModelGroupHolder)
open override fun bind(@NonNull() holder: ModelGroupHolder, @NonNull() previouslyBoundModel: EpoxyModel<*>)
open override fun bind(@NonNull() holder: ModelGroupHolder, @NonNull() payloads: MutableList<Any>)
buildView
Link copied to clipboard
open fun buildView(@NonNull() parent: ViewGroup): View
createNewHolder
Link copied to clipboard
override fun createNewHolder(@NonNull() parent: ViewParent): ModelGroupHolder
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getDefaultLayout
Link copied to clipboard
override fun getDefaultLayout(): Int
getLayout
Link copied to clipboard
fun getLayout(): Int
getSpanSize
Link copied to clipboard
open override fun getSpanSize(totalSpanCount: Int, position: Int, itemCount: Int): Int
getViewType
Link copied to clipboard
open fun getViewType(): Int
hasDefaultId
Link copied to clipboard
open fun hasDefaultId(): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
hide
Link copied to clipboard
open fun hide(): EpoxyModel<ModelGroupHolder>
id
Link copied to clipboard
open fun id(): Long
open fun id(@Nullable() vararg ids: Number): EpoxyModel<ModelGroupHolder>
open fun id(@Nullable() key: CharSequence?): EpoxyModel<ModelGroupHolder>
open fun id(id: Long): EpoxyModel<ModelGroupHolder>
open fun id(@Nullable() key: CharSequence?, @Nullable() vararg otherKeys: CharSequence): EpoxyModel<ModelGroupHolder>
open fun id(@Nullable() key: CharSequence?, id: Long): EpoxyModel<ModelGroupHolder>
open fun id(id1: Long, id2: Long): EpoxyModel<ModelGroupHolder>
isDebugValidationEnabled
Link copied to clipboard
open fun isDebugValidationEnabled(): Boolean
isShown
Link copied to clipboard
open fun isShown(): Boolean
layout
Link copied to clipboard
open fun layout(@LayoutRes() layoutRes: Int): EpoxyModel<ModelGroupHolder>
onFailedToRecycleView
Link copied to clipboard
open override fun onFailedToRecycleView(holder: ModelGroupHolder): Boolean
onMutation
Link copied to clipboard
fun onMutation()
onViewAttachedToWindow
Link copied to clipboard
open override fun onViewAttachedToWindow(holder: ModelGroupHolder)
onViewDetachedFromWindow
Link copied to clipboard
open override fun onViewDetachedFromWindow(holder: ModelGroupHolder)
onVisibilityChanged
Link copied to clipboard
open override fun onVisibilityChanged(percentVisibleHeight: Float, percentVisibleWidth: Float, @Px() visibleHeight: Int, @Px() visibleWidth: Int, @NonNull() holder: ModelGroupHolder)
onVisibilityStateChanged
Link copied to clipboard
open override fun onVisibilityStateChanged(visibilityState: Int, @NonNull() holder: ModelGroupHolder)
reset
Link copied to clipboard
open fun reset(): EpoxyModel<ModelGroupHolder>
shouldSaveViewState
Link copied to clipboard
open override fun shouldSaveViewState(): Boolean
open fun shouldSaveViewState(shouldSaveViewState: Boolean): EpoxyModelGroup
show
Link copied to clipboard
open fun show(): EpoxyModel<ModelGroupHolder>
open fun show(show: Boolean): EpoxyModel<ModelGroupHolder>
spanSize
Link copied to clipboard
fun spanSize(totalSpanCount: Int, position: Int, itemCount: Int): Int
spanSizeOverride
Link copied to clipboard
open fun spanSizeOverride(@Nullable() spanSizeCallback: EpoxyModel.SpanSizeOverrideCallback?): EpoxyModel<ModelGroupHolder>
toString
Link copied to clipboard
open override fun toString(): String
unbind
Link copied to clipboard
open override fun unbind(@NonNull() holder: ModelGroupHolder)
useViewStubLayoutParams
Link copied to clipboard
open fun useViewStubLayoutParams(model: EpoxyModel<*>, modelPosition: Int): Boolean
validateStateHasNotChangedSinceAdded
Link copied to clipboard
fun validateStateHasNotChangedSinceAdded(descriptionOfChange: String, modelPosition: Int)

Properties

addedToAdapter
Link copied to clipboard
val addedToAdapter: Boolean
controllerToStageTo
Link copied to clipboard
val controllerToStageTo: EpoxyController
models
Link copied to clipboard
val models: MutableList<EpoxyModel<*>>