openProduct

fun openProduct(    barcode: Barcode,     activity: FragmentActivity,     productOpenedListener: () -> Unit = {},     productErrorListener: (ProductViewActivityStarter.ErrorType) -> Unit = {})

Open the product in ProductViewActivity if the barcode exist. Also add it in the history if the product exist.

Parameters

barcode

product barcode

activity