Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get quantity when user changes the quantity #13

Open
mayurpaunipagar opened this issue May 26, 2020 · 1 comment
Open

How to get quantity when user changes the quantity #13

mayurpaunipagar opened this issue May 26, 2020 · 1 comment

Comments

@mayurpaunipagar
Copy link

How can get value of quantity when user changes the quantity?
I m aware that it has getOnQuantitChangeListener can help, but can you tell me how to use it?

@CleatonPais
Copy link

CleatonPais commented Mar 11, 2022

I am sure you must have got the solution.

But just in case I faced the same problem

the method to use is setOnQuantityChangeListener not getOnQuantitChangeListener

the implementation is below

setOnQuantityChangeListener(new QuantityView.OnQuantityChangeListener() {
            @Override
            public void onQuantityChanged(int oldQuantity, int newQuantity, boolean programmatically) {
             }

            @Override
            public void onLimitReached() {

            }
        });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants