ayhanunal / BasketLayout

Manage add to cart operation easier for android apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

maximum quantity filter for basket

maxBasketLimit?.let {
  if ((quantity + incrementValue) > it){
    listener?.maxLimitExceeded()
  }else{
    listener?.onClickIncreaseQuantity(quantity + incrementValue)
    setLoading()
  }
}
if (maxBasketLimit == null) {
  listener?.onClickIncreaseQuantity(quantity + incrementValue)
  setLoading()
}
findViewById<BasketLayoutView>(R.id.basketView).apply {
  this.setMaxBasketLimit(5)
}

About

Manage add to cart operation easier for android apps


Languages

Language:Kotlin 100.0%