SimpleScanActivityContract

class SimpleScanActivityContract : ActivityResultContract<Unit, Barcode?>

Returns a string containing the product barcode.

Constructors

Link copied to clipboard
fun SimpleScanActivityContract()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun createIntent(context: Context, input: Unit): Intent
Link copied to clipboard
open fun getSynchronousResult(context: Context, input: Unit): ActivityResultContract.SynchronousResult<Barcode?>?
Link copied to clipboard
open override fun parseResult(resultCode: Int, intent: Intent?): Barcode?