Simple Epoxy Model
Helper class for cases where you don't need to do anything special when binding the view. This allows you to just provide the layout instead of needing to create a separate EpoxyModel subclass. This is useful for static layouts. You can also specify an onClick listener and the span size.
Constructors
SimpleEpoxyModel
Link copied to clipboard
Functions
addIf
Link copied to clipboard
open fun addIf(condition: Boolean, @NonNull() controller: EpoxyController)
Content copied to clipboard
open fun addIf(@NonNull() predicate: EpoxyModel.AddPredicate, @NonNull() controller: EpoxyController)
Content copied to clipboard
Add this model to the given controller if the AddPredicate return true.
addTo
Link copied to clipboard
getSpanSize
Link copied to clipboard
open fun getSpanSize(totalSpanCount: Int, position: Int, itemCount: Int): Int
Content copied to clipboard
hide
Link copied to clipboard
id
Link copied to clipboard
open fun id(@Nullable() key: CharSequence, @Nullable() otherKeys: Array<CharSequence>): EpoxyModel<T>
Content copied to clipboard
onClick
Link copied to clipboard
onFailedToRecycleView
Link copied to clipboard
onViewAttachedToWindow
Link copied to clipboard
onViewDetachedFromWindow
Link copied to clipboard
onVisibilityChanged
Link copied to clipboard
onVisibilityStateChanged
Link copied to clipboard
open fun onVisibilityStateChanged(visibilityState: Int, @NonNull() view: T)
Content copied to clipboard
reset
Link copied to clipboard
shouldSaveViewState
Link copied to clipboard
show
Link copied to clipboard
span
Link copied to clipboard
spanSize
Link copied to clipboard
Returns the actual span size of this model, using the SpanSizeOverrideCallback if onewas set, otherwise using the value from getSpanSize
spanSizeOverride
Link copied to clipboard
open fun spanSizeOverride(@Nullable() spanSizeCallback: EpoxyModel.SpanSizeOverrideCallback): EpoxyModel<T>
Content copied to clipboard