All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dailystudio.devbricksx.annotations.Adapter.kt Maven / Gradle / Ivy

There is a newer version: 1.6.6
Show newest version
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<*>
)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy