aboutsummaryrefslogtreecommitdiff
path: root/kpref-activity/src/main/kotlin/ca/allanwang/kau/kpref/activity/KClick.kt
blob: c02b02453fe61d0aba606b54104d9e4f0f763179 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package ca.allanwang.kau.kpref.activity

import android.content.Context
import android.view.View
import ca.allanwang.kau.kpref.activity.items.KPrefItemBase

/**
 * Created by Allan Wang on 10/12/17.
 */
interface KClick<T> {

    val context: Context
    /**
     * Base view container from ViewHolder
     */
    val itemView: View

    /**
     * Optional inner view which differs per element
     */
    val innerView: View?

    /**
     * The item holding the data
     */
    val item: KPrefItemBase<T>
}