com.dailystudio.devbricksx.annotations.Adapter.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of devbricksx-kotlin-annotations Show documentation
Show all versions of devbricksx-kotlin-annotations Show documentation
DevBricks eXetrems Kotlin Annotations
package com.dailystudio.devbricksx.annotations
import kotlin.reflect.KClass
enum class ViewType {
SingleLine,
Card,
CardInformative,
CardImmersive,
Page,
Customized,
}
@Retention(AnnotationRetention.SOURCE)
@Target(AnnotationTarget.CLASS)
annotation class Adapter(
val viewHolder: KClass<*>,
val viewType: ViewType = ViewType.SingleLine,
val layout: Int = -1,
val layoutByName: String = "",
val paged: Boolean = false,
val notifyAfterListChanged: Boolean = false
)
@Retention(AnnotationRetention.SOURCE)
@Target(AnnotationTarget.CLASS)
annotation class ExperimentalPagingDataAdapter
@Retention(AnnotationRetention.SOURCE)
@Target(AnnotationTarget.CLASS)
annotation class FragmentAdapter(
val pageFragment: KClass<*>
)