ProductViewActivityStarter

class ProductViewActivityStarter @Inject constructor(    productRepository: ProductRepository,     localeManager: LocaleManager,     client: ProductRepository,     networkConnectivityRepository: NetworkConnectivityRepository)

Constructors

Link copied to clipboard
@Inject
fun ProductViewActivityStarter(    productRepository: ProductRepository,     localeManager: LocaleManager,     client: ProductRepository,     networkConnectivityRepository: NetworkConnectivityRepository)

Types

Link copied to clipboard
enum ErrorType : Enum<ProductViewActivityStarter.ErrorType>

Functions

Link copied to clipboard
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.