vnorderui / com.venuenext.vnorderui.ui.phonecollection / PhoneNumberCollectionTextWatcher

PhoneNumberCollectionTextWatcher

class PhoneNumberCollectionTextWatcher : TextWatcher

Listens for a text change. If found, triggers a callback to alert the owner. This let's the PhoneNumberCollectionFragment know the user has edited the phone number and the submit button should be shown to let the user resubmit.

Parameters

onTextChanged - Callback triggered when text is changed.

Constructors

<init>

Listens for a text change. If found, triggers a callback to alert the owner. This let's the PhoneNumberCollectionFragment know the user has edited the phone number and the submit button should be shown to let the user resubmit.

PhoneNumberCollectionTextWatcher(onTextChanged: (charSequence: CharSequence) -> Unit)

Properties

onTextChanged

Callback triggered when text is changed.

val onTextChanged: (charSequence: CharSequence) -> Unit

Functions

afterTextChanged

fun afterTextChanged(s: Editable?): Unit

beforeTextChanged

fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int): Unit

onTextChanged

fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int): Unit