vnorderui / com.venuenext.vnorderui.ui.phonecollection / PhoneNumberCollectionFragment

PhoneNumberCollectionFragment

class PhoneNumberCollectionFragment : Fragment, OnClickListener

This fragment, along with its corresponding ViewModel, handles phone number collection from the user.

It does not handle what is done with the number once it is collected. Instead, it delegates that work. This allows the fragment to be reused for multiple use cases. However, the only use case handled currently is to subscribe to order state notifications via SMS text message from the receipt.

Parameters

delegate - The delegate that will handle the phone number once collected.

Constructors

<init>

This fragment, along with its corresponding ViewModel, handles phone number collection from the user.

PhoneNumberCollectionFragment(delegate: PhoneNumberCollectionInterface)

Properties

delegate

The delegate that will handle the phone number once collected.

val delegate: PhoneNumberCollectionInterface

Functions

onClick

fun onClick(v: View?): Unit

onCreateView

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

onResume

fun onResume(): Unit