needs / com.skydoves.needs / Needs

Needs

class Needs : LifecycleObserver

Needs implements showing and dismissing popup with background, animations.

Types

Builder

class Builder

Builder class for creating Needs.

Factory

abstract class Factory

An abstract factory class for creating Needs instance.

Constructors

<init>

Needs(context: Context, builder: Builder)

Needs implements showing and dismissing popup with background, animations.

Properties

isShowing

var isShowing: Boolean

Functions

dismiss

fun dismiss(): Unit

dismiss the popup menu.

onDestroy

fun onDestroy(): Unit

dismiss automatically when lifecycle owner is destroyed.

setBackgroundSystemUiVisibility

fun setBackgroundSystemUiVisibility(visibility: Int): Unit

sets system UI visibility flags for backgroundView.

setOnConfirmListener

fun setOnConfirmListener(onConfirmListener: OnConfirmListener): Unit
fun setOnConfirmListener(block: () -> Unit): Unit

show

fun show(view: View): Unit

shows the popup menu to the center.