vncoreui / com.venuenext.vncoreui.ui / NumberPickerBottomSheetDialogFragment

NumberPickerBottomSheetDialogFragment

class NumberPickerBottomSheetDialogFragment : BottomSheetDialogFragment

Modal dialog for selecting a numerical value. Use newInstance to configure display settings and call setOnSelectionListener to receive the selected value.

Types

Data

data class Data : Serializable

Constructors

<init>

Modal dialog for selecting a numerical value. Use newInstance to configure display settings and call setOnSelectionListener to receive the selected value.

NumberPickerBottomSheetDialogFragment()

Functions

onCreateDialog

fun onCreateDialog(savedInstanceState: Bundle?): Dialog

onCreateView

fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View?

onDismiss

fun onDismiss(dialog: DialogInterface): Unit

setOnSelectionListener

Configures a listener to receive a callback when a value has been selected. This will not be invoked if the user closes the dialog without selecting a value.

fun setOnSelectionListener(listener: OnSelectionListener): Unit

Companion Object Functions

newInstance

fun newInstance(data: Data): NumberPickerBottomSheetDialogFragment