ProductConfirmationDialog

The product confirmation dialog with the option to enter discounts and change the quantity.

Inheritors

Types

Link copied to clipboard
fun interface Factory

Simple abstract factory to inject a custom ProductConfirmationDialog implementation

Link copied to clipboard
fun interface OnDismissListener

Interface used to allow the creator of a dialog to run some code when the dialog is dismissed.

Link copied to clipboard
fun interface OnKeyListener

Interface definition for a callback to be invoked when a hardware key event is dispatched to this dialog. The callback will be invoked before the key event is given to the view. This is only useful for hardware keyboards; a software input method has no obligation to trigger this listener.

Link copied to clipboard
fun interface OnShowListener

Interface used to allow the creator of a dialog to run some code when the dialog is shown.

Link copied to clipboard
class ViewModel(context: Context, project: Project, val product: Product, scannedCode: ScannedCode)

The view model of the product confirmation dialog, should be helpful if you want to customize that dialog.

Functions

Link copied to clipboard
abstract fun dismiss(addToCart: Boolean)

Dismiss the product confirmation dialog

Link copied to clipboard

Set a dismiss listener

Link copied to clipboard

Set a key listener

Link copied to clipboard

Set a show listener

Link copied to clipboard
abstract fun show(activity: FragmentActivity, viewModel: ProductConfirmationDialog.ViewModel)

Show the product confirmation dialog with the given view model.