Package-level declarations

Common classes, data types and utilities for all modules.

Types

Link copied to clipboard
@Serializable
data class Barcode(val encodedBarcode: String? = null, val rawBarcode: ByteArray? = null, val type: Barcode.Type? = null)

Describes the contents of a barcode.

Link copied to clipboard
object DateUtil

Utility class for formatting dates.

Link copied to clipboard
sealed class DeviceInfoResult

Result of a request to get device metadata.

Link copied to clipboard

A utility class to generate device metadata.

Link copied to clipboard
@Serializable
data class DocumentClassification(val documentType: DocumentClassification.Type)

Supported document classifications.

Link copied to clipboard
@Serializable
data class DocumentData(val docType: String? = null, val country: String? = null, val surname: String? = null, val firstName: String? = null, val docNumber: String? = null, val nationality: String? = null, val dateOfBirth: String? = null, val sex: String? = null, val dateOfExpiration: String? = null, val optionalData1: String? = null, val optionalData2: String? = null, val rawData: String? = null)

Describes the formatted extracted contents of a document.

Link copied to clipboard
@Serializable
data class DocumentExtraction(val mrz: Mrz? = null, val extractedData: DocumentData? = null, val extractedDataCorners: ExtractedDataCorners? = null)

Describes the contents extracted from a document.

Link copied to clipboard

Supported document quality checks.

Link copied to clipboard
object ExifUtil

Utility class for writing EXIF data to JPGs.

Link copied to clipboard
@Serializable
data class ExtractedDataCorners(val optionalData1Corners: Array<Array<IntArray>> = emptyArray())

Describes supplemental information about the supported and available mrz data elements.

Link copied to clipboard

Supported face quality checks.

Link copied to clipboard
interface Frame

Wrapper over a camera frame, containing the image dimensions, rotation of the image in regards to the device natural orientation, the image format and byte data. NOTE: Frames must be closed after use.

Link copied to clipboard
interface FrameImage

Wrapper over Image and Image.Plane that provides access to the image data through one or more buffers.

Link copied to clipboard
object FrameUtil

Utility class for interacting with Frame and FrameImage instances.

Link copied to clipboard
class LicenseException(val message: String) : Exception

Thrown to indicate that there is a problem with the license. These include:

Link copied to clipboard

Utility class to evaluate licensed features.

Link copied to clipboard

Utility class for getting the LifecycleOwner from a Context.

Link copied to clipboard

Utility class for adding one time observers to LiveData.

Link copied to clipboard
object MibiData

Singleton to keep track of MiBi data and UXP events associated with a session.

Link copied to clipboard
@Serializable
data class MiSnapCameraInfo(val supportsAutoAnalysis: Boolean, val supportsAutoFocus: Boolean, val supportsTorch: Boolean, val supportedPreviewSize: Size, val supportedImageAnalysisSize: Size, val supportedPictureSize: Size, val deviceHardwareLevel: String, val facingDirection: String, val supportedImageAnalysisHighResolutionSize: Size? = null, val supportedPictureHighResolutionSize: Size? = null)

Consolidates the interpreted results of what the camera supports according to specific business logic.

Link copied to clipboard
@Serializable
data class MiSnapMibiData(val mibiData: String, val deviceInfo: MibiData.DeviceInfo, val sessionInfo: List<MibiData.SessionInfo>)

Describes analytics information about a MiSnap session.

Link copied to clipboard
@Serializable
class MiSnapSettings(val useCase: MiSnapSettings.UseCase, val license: String) : Cloneable

The main configuration object across all the MiSnap SDK capabilities.

Link copied to clipboard
@Serializable
sealed class Mrz

Marker interface for MRZs.

Link copied to clipboard
@Serializable
data class Mrz1Line(val mrzString: String) : Mrz

30 characters of 1-line MRZ.

Link copied to clipboard
@Serializable
data class MrzData(val documentNumber: String, val dateOfBirth: String, val dateOfExpiry: String, val country: String, val documentCode: String, val optionalData1: String = "<<<<<<<<<<<<<<") : Mrz

MRZ containing document number, date of birth (YYMMdd), date of expiry (YYMMdd), 3-letter country code, 2-letter document code, and 14-letter optionalData1.

Link copied to clipboard

Utility class for querying the device's orientation.

Link copied to clipboard
@Serializable
sealed class UserAction

Represents an action that the user must perform to meet the Frame quality criteria.

Link copied to clipboard

Utility class for validating the data in a Mrz.