epoxy-adapter / com.airbnb.epoxy / GroupModel

GroupModel

abstract class GroupModel : EpoxyModelGroup, ModelCollector

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

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

Constructors

<init>

GroupModel()
GroupModel(layoutRes: Int)

Inherited Properties

models

val models: MutableList<EpoxyModel<*>!>!

Functions

add

open fun add(model: EpoxyModel<*>): Unit

Inherited Functions

addModel

open fun addModel(model: EpoxyModel<*>): Unit

bind

open fun bind(holder: ModelGroupHolder): Unit
open fun bind(holder: ModelGroupHolder, payloads: MutableList<Any!>): Unit
open fun bind(holder: ModelGroupHolder, previouslyBoundModel: EpoxyModel<*>): Unit

createNewHolder

fun createNewHolder(parent: ViewParent): ModelGroupHolder!

equals

open fun equals(other: Any?): Boolean

getDefaultLayout

fun getDefaultLayout(): Int

getSpanSize

open fun getSpanSize(totalSpanCount: Int, position: Int, itemCount: Int): Int

hashCode

open fun hashCode(): Int

onViewAttachedToWindow

open fun onViewAttachedToWindow(holder: ModelGroupHolder): Unit

onViewDetachedFromWindow

open fun onViewDetachedFromWindow(holder: ModelGroupHolder): Unit

shouldSaveViewState

open fun shouldSaveViewState(shouldSaveViewState: Boolean): EpoxyModelGroup
open fun shouldSaveViewState(): Boolean

unbind

open fun unbind(holder: ModelGroupHolder): Unit

useViewStubLayoutParams

open fun useViewStubLayoutParams(model: EpoxyModel<*>!, modelPosition: Int): Boolean

Whether the layout params set on the view stub for the given model should be carried over to the model's view. Default is true

Inheritors

GroupModel_

open class GroupModel_ : GroupModel, GeneratedModel<ModelGroupHolder!>, GroupModelBuilder

Generated file. Do not modify!