Input Image

Defined in package com.scandit.datacapture.core

InputImage
class InputImage

Added in version 8.6.0

A developer-provided image fed into the SDK — for example a custom TorchSwitchControl icon, an ImageFrameSource, or the content image of a BarcodeFindItemContent. Set exactly one of the four source fields; the platform decodes it lazily to a native image. For an image produced by the SDK, use CapturedImage instead.

InputImage()
InputImage(url: String?,
        assetName: String?,
        resourceId: String?,
        base64Data: String?)

Added in version 8.6.0

Creates an input image from exactly one of the provided sources.

url
val url: String?

Added in version 8.6.0

An http(s) URL pointing to an image resource.

assetName
val assetName: String?

Added in version 8.6.0

An Android assets / iOS bundle image filename.

resourceId
val resourceId: String?

Added in version 8.6.0

An Android drawable resource name.

base64Data
val base64Data: String?

Added in version 8.6.0

Base64-encoded PNG or JPEG image bytes.