vnorderui / com.venuenext.vnorderui.experience / ExperienceMenuAdapter

ExperienceMenuAdapter

class ExperienceMenuAdapter : Adapter<VNViewHolder>

ExperienceMenuAdapter VenueNext

Adapter used for the Event Menu recycler screen.

Parameters

context -

viewModel -

delegate - Created on 6/25/19. Copyright © 2019 VenueNext Inc. All rights reserved.

Constructors

<init>

ExperienceMenuAdapter VenueNext

ExperienceMenuAdapter(viewModel: MenuViewModel, delegate: ExperienceMenuDelegate, userIsSTH: Boolean, userIsPCH: Boolean)

Properties

recyclerViewItems

var recyclerViewItems: List<Any>?

Functions

getItemCount

fun getItemCount(): Int

getItemViewType

fun getItemViewType(position: Int): Int

listen

fun <T : ViewHolder> T.listen(event: (position: Int, type: Int) -> Unit): T

onBindViewHolder

fun onBindViewHolder(holder: VNViewHolder, position: Int): Unit

onCreateViewHolder

fun onCreateViewHolder(parent: ViewGroup, viewType: Int): VNViewHolder