Product View Activity Starter
class ProductViewActivityStarter @Inject constructor( productRepository: ProductRepository, localeManager: LocaleManager, client: ProductRepository, networkConnectivityRepository: NetworkConnectivityRepository)
Content copied to clipboard
Constructors
Link copied to clipboard
@Inject
Content copied to clipboard
Types
Functions
Link copied to clipboard
fun openProduct( barcode: Barcode, activity: FragmentActivity, productOpenedListener: () -> Unit = {}, productErrorListener: (ProductViewActivityStarter.ErrorType) -> Unit = {})
Content copied to clipboard
Open the product in ProductViewActivity if the barcode exist. Also add it in the history if the product exist.