title: How to pass Interface in my Kotlin RecylerView adapter and getting callback in Kotlin Activity
body: <p>This is my KotlinRecyclerView adapter class    </p>
  
  <pre><code>  class ListAdapter(var c: Context, var lists: ArrayList&lt;Employee&gt;,
       itemClickListener: Any?): RecyclerView.Adapter&lt;RecyclerView.ViewHolder&gt;() {
        override fun onCreateViewHolder(parent: ViewGroup?, viewType: Int): RecyclerView.ViewHolder {
         var v = LayoutInflater.from(c).inflate(R.layout.list_layout, parent, false)
          return Item(v)
        }
        override fun onBindViewHolder(holder: RecyclerView.ViewHolder?, position: Int) {
         (holder as Item).bindData(lists.get(position))
        }
        override fun getItemCount(): Int {
          return  lists.size;
          }
       class Item(itemView: View) : RecyclerView.ViewHolder(itemView) {
        fun bindData(_list: Employee)
        {
         itemView.textViewfirstname.text = _list.firstName
         itemView.textViewlastname.text = _list.lastName
        }
       }
      }
  </code></pre>
  
  <p>This is my Kotlin activity code </p>
  
  <pre><code>list.adapter = ListAdapter(this, getLists())
  </code></pre>