needs / com.skydoves.needs

Package com.skydoves.needs

Types

ActivityNeedsLazy

class ActivityNeedsLazy<out T : Factory> : Lazy<Needs>

An implementation of Lazy used by ComponentActivity

FragmentNeedsLazy

class FragmentNeedsLazy<out T : Factory> : Lazy<Needs?>

An implementation of Lazy used by ComponentActivity

Needs

class Needs : LifecycleObserver

Needs implements showing and dismissing popup with background, animations.

NeedsAnimation

enum class NeedsAnimation

NeedsAnimation is the collection of the popup animations.

NeedsItem

data class NeedsItem

NeedsItem is an data class for composing Needs popup recyclerView item.

NeedsItemTheme

class NeedsItemTheme

NeedsItemTheme is an attribute class for changing item theme easily.

NeedsPreferenceManager

class NeedsPreferenceManager

NeedsTheme

class NeedsTheme

NeedsTheme is an attribute class for changing Needs popup theme easily.

OnConfirmListener

interface OnConfirmListener

OnConfirmListener is an interface for listening the confirm from the Needs popup.

TextForm

class TextForm

TextFrom is an attribute class what has some attributes about TextView for customizing popup texts easily.

Annotations

NeedsDsl

annotation class NeedsDsl

NeedsItemThemeDsl

annotation class NeedsItemThemeDsl

NeedsThemeDsl

annotation class NeedsThemeDsl

TextFormDsl

annotation class TextFormDsl

Extensions for External Classes

android.view.View

androidx.activity.ComponentActivity

androidx.fragment.app.Fragment

Functions

createNeeds

fun createNeeds(context: Context, block: Builder.() -> Unit): Needs

creates an instance of Needs by Needs.Builder using kotlin dsl.

needsItemTheme

fun needsItemTheme(context: Context, block: Builder.() -> Unit): NeedsItemTheme

creates an instance of NeedsItemTheme by NeedsItemTheme.Builder using kotlin dsl.

needsTheme

fun needsTheme(context: Context, block: Builder.() -> Unit): NeedsTheme

creates an instance of NeedsTheme by NeedsTheme.Builder using kotlin dsl.

textForm

fun textForm(block: Builder.() -> Unit): TextForm

creates an instance of TextForm from TextForm.Builder using kotlin dsl.